diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2017-08-12 16:02:40 +0300 |
---|---|---|
committer | Topi Miettinen <toiwoton@gmail.com> | 2017-08-12 16:02:40 +0300 |
commit | 69d3c297758f6eb1ff82bf540dd145815a67f01e (patch) | |
tree | 96be7b0fabe28c3cab8b1adfc2d955c9ac7be927 | |
parent | Merge pull request #1461 from SpotComms/f2 (diff) | |
download | firejail-69d3c297758f6eb1ff82bf540dd145815a67f01e.tar.gz firejail-69d3c297758f6eb1ff82bf540dd145815a67f01e.tar.zst firejail-69d3c297758f6eb1ff82bf540dd145815a67f01e.zip |
Enable system call groups with minus sign
-rw-r--r-- | src/firejail/seccomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c index 8314a6bc9..7cbd79d6b 100644 --- a/src/firejail/seccomp.c +++ b/src/firejail/seccomp.c | |||
@@ -41,7 +41,7 @@ char *seccomp_check_list(const char *str) { | |||
41 | const char *ptr1 = str; | 41 | const char *ptr1 = str; |
42 | char *ptr2 = rv; | 42 | char *ptr2 = rv; |
43 | while (*ptr1 != '\0') { | 43 | while (*ptr1 != '\0') { |
44 | if (isalnum(*ptr1) || *ptr1 == '_' || *ptr1 == ',' || *ptr1 == ':' || *ptr1 == '@') | 44 | if (isalnum(*ptr1) || *ptr1 == '_' || *ptr1 == ',' || *ptr1 == ':' || *ptr1 == '@' || *ptr1 == '-') |
45 | *ptr2++ = *ptr1++; | 45 | *ptr2++ = *ptr1++; |
46 | else { | 46 | else { |
47 | fprintf(stderr, "Error: invalid syscall list\n"); | 47 | fprintf(stderr, "Error: invalid syscall list\n"); |