aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 7ff7c7926..a2336090f 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -580,6 +580,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
580 580
581 // private /etc list of files and directories 581 // private /etc list of files and directories
582 if (strncmp(ptr, "private-etc ", 12) == 0) { 582 if (strncmp(ptr, "private-etc ", 12) == 0) {
583 if (arg_writable_etc) {
584 fprintf(stderr, "Error: --private-etc and --writable-etc are mutually exclusive\n");
585 exit(1);
586 }
583 cfg.etc_private_keep = ptr + 12; 587 cfg.etc_private_keep = ptr + 12;
584 fs_check_etc_list(); 588 fs_check_etc_list();
585 if (*cfg.etc_private_keep != '\0') 589 if (*cfg.etc_private_keep != '\0')