Skip to content

Commit

Permalink
linux: add access syscall to seccomp rules
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Quartulli <a@unstable.cc>
  • Loading branch information
ordex authored and vincentbernat committed Jan 9, 2022
1 parent 3d916d6 commit 0ea4b1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/daemon/priv-seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ priv_seccomp_init(int remote, int child)
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(gettimeofday), 0)) < 0 ||
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(newfstatat), 0)) < 0 ||
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(pread64), 0)) < 0 ||
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(access), 0)) < 0 ||
/* The following are for resolving addresses */
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(mmap), 0)) < 0 ||
(rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(munmap), 0)) < 0 ||
Expand Down

0 comments on commit 0ea4b1a

Please sign in to comment.