1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

* lib-src/seccomp-filter.c (main): Also allow O_NOFOLLOW.

This commit is contained in:
Philipp Stephani 2021-04-11 21:14:09 +02:00
parent 9a57897ea1
commit cf0701eff0

View File

@ -241,12 +241,12 @@ main (int argc, char **argv)
RULE (SCMP_ACT_ALLOW, SCMP_SYS (open),
SCMP_A1_32 (SCMP_CMP_MASKED_EQ,
~(O_RDONLY | O_BINARY | O_CLOEXEC | O_PATH
| O_DIRECTORY),
| O_DIRECTORY | O_NOFOLLOW),
0));
RULE (SCMP_ACT_ALLOW, SCMP_SYS (openat),
SCMP_A2_32 (SCMP_CMP_MASKED_EQ,
~(O_RDONLY | O_BINARY | O_CLOEXEC | O_PATH
| O_DIRECTORY),
| O_DIRECTORY | O_NOFOLLOW),
0));
/* Allow `tcgetpgrp'. */