Skip to content

Commit

Permalink
swtpm: Add 9 more syscalls to seccomp profile blacklist
Browse files Browse the repository at this point in the history
Add 9 more syscalls of concern to the seccomp profile blacklist.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Apr 12, 2019
1 parent 86e8f60 commit a9a9320
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/swtpm/seccomp_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ int create_seccomp_profile(bool cusetpm, unsigned int action)
SCMP_SYS(chroot),
SCMP_SYS(settimeofday),
SCMP_SYS(clock_adjtime),
SCMP_SYS(clock_settime),
SCMP_SYS(adjtimex),
SCMP_SYS(mount),
SCMP_SYS(umount2),
SCMP_SYS(swapon),
Expand All @@ -101,6 +103,7 @@ int create_seccomp_profile(bool cusetpm, unsigned int action)
SCMP_SYS(kcmp),
SCMP_SYS(init_module),
SCMP_SYS(finit_module),
SCMP_SYS(delete_module),
SCMP_SYS(seccomp),
SCMP_SYS(kexec_file_load),
#ifdef __NR_sysctl
Expand Down Expand Up @@ -161,7 +164,12 @@ int create_seccomp_profile(bool cusetpm, unsigned int action)
SCMP_SYS(eventfd2),
SCMP_SYS(fanotify_init),
SCMP_SYS(fanotify_mark),
SCMP_SYS(clock_adjtime),
SCMP_SYS(mknod),
SCMP_SYS(mknodat),
SCMP_SYS(acct),
SCMP_SYS(prctl),
SCMP_SYS(prlimit64),
SCMP_SYS(setrlimit),
#ifdef __NR_bpf
SCMP_SYS(bpf),
#endif
Expand Down

0 comments on commit a9a9320

Please sign in to comment.