summaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 9e0f0325e..38052c4f1 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -716,6 +716,18 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
716 return 0; 716 return 0;
717 } 717 }
718 718
719 // read-write
720 if (strncmp(ptr, "read-write ", 11) == 0) {
721 if (getuid() != 0) {
722 fprintf(stderr, "Error: read-write command is available only for root user\n");
723 exit(1);
724 }
725printf("here %d\n", __LINE__);
726 fs_rdwr_add(ptr + 11);
727printf("here %d\n", __LINE__);
728 return 0;
729 }
730
719 // rest of filesystem 731 // rest of filesystem
720 if (strncmp(ptr, "blacklist ", 10) == 0) 732 if (strncmp(ptr, "blacklist ", 10) == 0)
721 ptr += 10; 733 ptr += 10;