diff options
author | netblue30 <netblue30@yahoo.com> | 2018-09-10 09:58:53 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-09-10 09:58:53 -0400 |
commit | e54f8100d90f29b58d2a30bf8d93704c06e6761b (patch) | |
tree | 7669ba470de82ee544d00363bc1946e74ee05290 /src | |
parent | cleanup (diff) | |
download | firejail-e54f8100d90f29b58d2a30bf8d93704c06e6761b.tar.gz firejail-e54f8100d90f29b58d2a30bf8d93704c06e6761b.tar.zst firejail-e54f8100d90f29b58d2a30bf8d93704c06e6761b.zip |
testing
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 8 | ||||
-rw-r--r-- | src/man/firejail.txt | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index a90ecbeee..98c45b637 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -604,6 +604,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
604 | return 0; | 604 | return 0; |
605 | } | 605 | } |
606 | // seccomp drop list without default list | 606 | // seccomp drop list without default list |
607 | if (strcmp(ptr, "seccomp.drop") == 0) { | ||
608 | fprintf(stderr, "Error: line %d in %s is invalid\n", lineno, fname); | ||
609 | exit(1); | ||
610 | } | ||
607 | if (strncmp(ptr, "seccomp.drop ", 13) == 0) { | 611 | if (strncmp(ptr, "seccomp.drop ", 13) == 0) { |
608 | #ifdef HAVE_SECCOMP | 612 | #ifdef HAVE_SECCOMP |
609 | if (checkcfg(CFG_SECCOMP)) { | 613 | if (checkcfg(CFG_SECCOMP)) { |
@@ -617,6 +621,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
617 | } | 621 | } |
618 | 622 | ||
619 | // seccomp keep list | 623 | // seccomp keep list |
624 | if (strcmp(ptr, "seccomp.keep") == 0) { | ||
625 | fprintf(stderr, "Error: line %d in %s is invalid\n", lineno, fname); | ||
626 | exit(1); | ||
627 | } | ||
620 | if (strncmp(ptr, "seccomp.keep ", 13) == 0) { | 628 | if (strncmp(ptr, "seccomp.keep ", 13) == 0) { |
621 | #ifdef HAVE_SECCOMP | 629 | #ifdef HAVE_SECCOMP |
622 | if (checkcfg(CFG_SECCOMP)) { | 630 | if (checkcfg(CFG_SECCOMP)) { |
diff --git a/src/man/firejail.txt b/src/man/firejail.txt index 0bc1c1b5d..98d74bcf8 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt | |||
@@ -296,9 +296,6 @@ Example: | |||
296 | .br | 296 | .br |
297 | $ firejail \-\-debug-errnos | 297 | $ firejail \-\-debug-errnos |
298 | .TP | 298 | .TP |
299 | \fB\-\-debug-private-lib | ||
300 | Debug messages for --private-lib option. | ||
301 | .TP | ||
302 | \fB\-\-debug-protocols | 299 | \fB\-\-debug-protocols |
303 | Print all recognized protocols in the current Firejail software build and exit. | 300 | Print all recognized protocols in the current Firejail software build and exit. |
304 | .br | 301 | .br |