[File] The seccomp filter on any ppc architecture may fail
Christos Zoulas
christos at zoulas.com
Thu Mar 20 14:58:17 UTC 2025
Committed, thanks! Wow, what a mess.
christos
> On Mar 20, 2025, at 9:38 AM, Dr. Werner Fink <werner at suse.de> wrote:
>
> Hi,
>
> I had a bug report that on physical terminals like /dev/console the
> seccomp filter cause a SIGSYS due to not allowd TCGETS ioctl. This
> ioctl is performed by glibc its self by its tcgetattr(3) call.
>
> The problem is that the TCGETS get by the includes
>
> #include <termios.h>
> #include <sys/ioctl.h>
>
> are wrong on ppc based architectures and will not be fixed by the glibc
> people (see https://sourceware.org/bugzilla/show_bug.cgi?id=32806)
>
> A workaround is here for
>
> #ifdef __powerpc64__
> # include <asm/termbits.h>
> #else
> # include <termios.h>
> #endif
> #include <sys/ioctl.h>
>
> where <asm/termbits.h> if includes before <sys/ioctl.h>
>
> In the attachment is my patch for this
>
> Werner
> --
> "Having a smoking section in a restaurant is like having
> a peeing section in a swimming pool." -- Edward Burr
> <file-seccomp-ppc.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20250320/952c0972/attachment.asc>
More information about the File
mailing list