]> git.ipfire.org Git - thirdparty/systemd.git/commit
seccomp: use per arch shmat_syscall
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 27 Nov 2019 09:53:50 +0000 (10:53 +0100)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 5 Dec 2019 06:19:12 +0000 (07:19 +0100)
commit5ef3ed97e3c718be790b1f38928ca66cb68250a8
treee0f6141342b1c85f211a01c2c96df7a68cfa7f03
parent903659e7b242c3cc897e32835f1918d380b24e5f
seccomp: use per arch shmat_syscall

At the beginning of seccomp_memory_deny_write_execute architectures
can set individual filter_syscall, block_syscall, shmat_syscall values.
The former two are then used in the call to add_seccomp_syscall_filter
but shmat_syscall is not.

Right now all shmat_syscall values are the same, so the change is a
no-op, but if ever an architecture is added/modified this would be a
subtle source for a mistake so fix it by using shmat_syscall later.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
src/shared/seccomp-util.c