diff options
author | Paul Chaignon <paul.chaignon@gmail.com> | 2019-08-14 17:10:35 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2019-08-31 16:20:44 +0000 |
commit | 1fd85815a2e7abb45f6c81191d8313d603b6d113 (patch) | |
tree | 44032b97ae11ede2bed74955f8486150c3962e5a /linux/avr32/syscallent.h | |
parent | ff36129d98cedcba3c080e1a2e3218a6be556e9b (diff) | |
download | strace-1fd85815a2e7abb45f6c81191d8313d603b6d113.tar.gz |
Add seccomp filter syscall flag
This commit adds a new syscall flag for syscall that are traced by default
under seccomp filter.
The syscallent changes can be reproduced with the following script:
git grep -l 'SEN(\(execv\|ipc\|socketcall\|ipc\)' |
xargs -r sed -i -e '/SEN(execv/ s/TP|/&TSD|/' \
-e '/SEN(ipc)/ s/TI/&|TSD/' -e '/SEN(socketcall)/ s/TD/&|TSD/' \
-e '/SEN(syscall)/ s/0,/TSD,/'
* sysent.h (TRACE_SECCOMP_DEFAULT): Define new flag.
* sysent_shorthand_defs.h (TSD): Define new flag shorthand.
* linux/32/syscallent.h: Add TSD flag.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'linux/avr32/syscallent.h')
-rw-r--r-- | linux/avr32/syscallent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h index 81d18d6bb..eb764b20b 100644 --- a/linux/avr32/syscallent.h +++ b/linux/avr32/syscallent.h @@ -17,7 +17,7 @@ [ 8] = { 2, TD|TF, SEN(creat), "creat" }, [ 9] = { 2, TF, SEN(link), "link" }, [ 10] = { 1, TF, SEN(unlink), "unlink" }, -[ 11] = { 3, TF|TP|SE|SI, SEN(execve), "execve" }, +[ 11] = { 3, TF|TP|TSD|SE|SI, SEN(execve), "execve" }, [ 12] = { 1, TF, SEN(chdir), "chdir" }, [ 13] = { 1, 0, SEN(time), "time" }, [ 14] = { 3, TF, SEN(mknod), "mknod" }, @@ -114,7 +114,7 @@ [105] = { 2, 0, SEN(getitimer), "getitimer" }, [106] = { 1, TF, SEN(swapoff), "swapoff" }, [107] = { 1, 0, SEN(sysinfo), "sysinfo" }, -[108] = { 6, TI, SEN(ipc), "ipc" }, +[108] = { 6, TI|TSD, SEN(ipc), "ipc" }, [109] = { 4, TD|TN, SEN(sendfile), "sendfile" }, [110] = { 2, 0, SEN(setdomainname), "setdomainname" }, [111] = { 1, 0, SEN(uname), "uname" }, @@ -326,7 +326,7 @@ [317] = { 3, 0, SEN(getrandom), "getrandom" }, [318] = { 2, TD, SEN(memfd_create), "memfd_create" }, [319] = { 3, TD, SEN(bpf), "bpf" }, -[320] = { 5, TD|TF|TP|SE|SI, SEN(execveat), "execveat" }, +[320] = { 5, TD|TF|TP|TSD|SE|SI, SEN(execveat), "execveat" }, [321] = { 4, TN, SEN(accept4), "accept4" }, [322] = { 1, TD, SEN(userfaultfd), "userfaultfd" }, [323] = { 2, 0, SEN(membarrier), "membarrier" }, |