aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2019-08-29 14:30:46 -0500
committerLibravatar GitHub <noreply@github.com>2019-08-29 14:30:46 -0500
commita6c608ca6d1dfd46277f282064907a77527ee1c0 (patch)
treef4ec6c9c80b82d9ff4f22ae4105fa09900b344a4 /src
parentAllow exceptions to seccomp lists (diff)
parentseccomp numeric testing (diff)
downloadfirejail-a6c608ca6d1dfd46277f282064907a77527ee1c0.tar.gz
firejail-a6c608ca6d1dfd46277f282064907a77527ee1c0.tar.zst
firejail-a6c608ca6d1dfd46277f282064907a77527ee1c0.zip
Merge branch 'master' into seccomp-allow-exceptions
Diffstat (limited to 'src')
-rw-r--r--src/firejail/seccomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c
index 50fc0384c..62d2e037e 100644
--- a/src/firejail/seccomp.c
+++ b/src/firejail/seccomp.c
@@ -48,7 +48,8 @@ char *seccomp_check_list(const char *str) {
48 const char *ptr1 = str; 48 const char *ptr1 = str;
49 char *ptr2 = rv; 49 char *ptr2 = rv;
50 while (*ptr1 != '\0') { 50 while (*ptr1 != '\0') {
51 if (isalnum(*ptr1) || *ptr1 == '_' || *ptr1 == ',' || *ptr1 == ':' || *ptr1 == '@' || *ptr1 == '-' || *ptr1 == '!') 51 if (isalnum(*ptr1) || *ptr1 == '_' || *ptr1 == ',' || *ptr1 == ':'
52 || *ptr1 == '@' || *ptr1 == '-' || *ptr1 == '$' || *ptr1 = '!')
52 *ptr2++ = *ptr1++; 53 *ptr2++ = *ptr1++;
53 else { 54 else {
54 fprintf(stderr, "Error: invalid syscall list entry %s\n", str); 55 fprintf(stderr, "Error: invalid syscall list entry %s\n", str);