]> git.ipfire.org Git - thirdparty/systemd.git/commit
seccomp: let's update @file-system a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 17:33:54 +0000 (19:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Sep 2017 13:45:21 +0000 (15:45 +0200)
commitceaa6aa76beb4b97c435710b65ba02a951db5347
tree2b35623cf712794078313ad417d9669d0444434c
parent648a0ed0d7df52a485bd20085f9427714e5e176c
seccomp: let's update @file-system a bit

Let's add fremovexattr which was the only xattr syscall so far missing
from the group, even though lremovexattr and friends where included.

Add inotify_init, which is an older (but still supported) version of
inotify_init1.

Add oldfstat, oldlstat, oldstat which are old versions of the stat
syscalls on some archs.

Add utime, which is an older more limited version of utimes and
utimensat.

Enclose the "statx" entry in some ifdeffery to ensure libseccomp
actually knows the syscall. If libseccomp doesn't know it, then we'd get
EINVAL rather than EDOM (which is what is returned if a syscall is known
but not available on the local system) when resolving the syscall name
and we really don't want that, as we use the EDOM vs. EINVAL check for
determining whether a syscall makes sense at all.

Also, order things alphabetically.
src/shared/seccomp-util.c