diff options
author | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-07-28 09:33:21 +0200 |
---|---|---|
committer | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2021-07-28 09:33:21 +0200 |
commit | 48a97c265e19beed611af44c25f5671c3762ff86 (patch) | |
tree | 463a7f291c287bf988c6f753efccccd23c85ba47 | |
parent | Update etc/templates/syscalls.txt (diff) | |
download | firejail-48a97c265e19beed611af44c25f5671c3762ff86.tar.gz firejail-48a97c265e19beed611af44c25f5671c3762ff86.tar.zst firejail-48a97c265e19beed611af44c25f5671c3762ff86.zip |
Add support for ignore to profcleaner.sh
-rwxr-xr-x | src/tools/profcleaner.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/profcleaner.sh b/src/tools/profcleaner.sh index 709008e08..96402aed6 100755 --- a/src/tools/profcleaner.sh +++ b/src/tools/profcleaner.sh | |||
@@ -38,8 +38,8 @@ else | |||
38 | fi | 38 | fi |
39 | 39 | ||
40 | sed -i -E \ | 40 | sed -i -E \ |
41 | -e "s/^(# |#)?blacklist/\1deny/" \ | 41 | -e "s/^(# |#)?(ignore )?blacklist/\1\2deny/" \ |
42 | -e "s/^(# |#)?noblacklist/\1nodeny/" \ | 42 | -e "s/^(# |#)?(ignore )?noblacklist/\1\2nodeny/" \ |
43 | -e "s/^(# |#)?whitelist/\1allow/" \ | 43 | -e "s/^(# |#)?(ignore )?whitelist/\1\2allow/" \ |
44 | -e "s/^(# |#)?nowhitelist/\1noallow/" \ | 44 | -e "s/^(# |#)?(ignore )?nowhitelist/\1\2noallow/" \ |
45 | "${profiles[@]}" | 45 | "${profiles[@]}" |