diff options
-rw-r--r-- | src/firejail/profile.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 756b370aa..7757c1814 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -1789,6 +1789,17 @@ void profile_read(const char *fname) { | |||
1789 | free(ptr); | 1789 | free(ptr); |
1790 | ptr = tmp; | 1790 | ptr = tmp; |
1791 | } | 1791 | } |
1792 | else if (strncmp(ptr, "whitelist-ro ", 13) == 0) { | ||
1793 | char *whitelist, *readonly; | ||
1794 | if (asprintf(&whitelist, "whitelist %s", ptr + 13) == -1) | ||
1795 | errExit("asprintf"); | ||
1796 | profile_add(whitelist); | ||
1797 | if (asprintf(&readonly, "read-only %s", ptr + 13) == -1) | ||
1798 | errExit("asprintf"); | ||
1799 | profile_add(readonly); | ||
1800 | free(ptr); | ||
1801 | continue; | ||
1802 | } | ||
1792 | 1803 | ||
1793 | // process quiet | 1804 | // process quiet |
1794 | // todo: a quiet in the profile file cannot be disabled by --ignore on command line | 1805 | // todo: a quiet in the profile file cannot be disabled by --ignore on command line |