Re: [PATCH v13 0/3] Add kernel seccomp support for m68k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Adrian,


On 17/01/23 21:08, John Paul Adrian Glaubitz wrote:
Hi Michael!

On 1/17/23 03:15, Michael Schmitz wrote:
That one also exists on alpha and sparc. The other two are indeed
unique to m68k.

There must have been other cases of novel syscalls added to libseccomp
before?

Neither alpha nor sparc are supported by libseccomp, so I think that's
not an argument.

Explains why getpagesize still is not handled by libseccomp, then.

Now do any of the other architectures recently added to libseccomp have non-standard syscalls? (Trying to work out what commits might hold the secret to adding support for
new syscalls...)

This interactive arch-wide chart table should be helpful for finding this out:

https://marcin.juszkiewicz.com.pl/download/tables/syscalls.html

Look at include/seccomp-syscalls.h - I'd add the missing syscalls after this one:

#define __PNR_memfd_secret                      -10244

(pseudo syscall numbers for the other architectures)

plus appropriate boilerplate such as this:

#ifdef __NR_memfd_secret
#define __SNR_memfd_secret              __NR_memfd_secret
#else
#define __SNR_memfd_secret              __PNR_memfd_secret
#endif

(actual syscall numbers from our arch/m68k/include/uapi/asm/unistd-32.h used).

Just looked at the source, didn't try to build anything so I may be missing something crucial here...

Cheers,

    Michael



Adrian




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux