diff options
author | 2021-07-09 12:55:40 +0200 | |
---|---|---|
committer | 2021-07-09 12:55:40 +0200 | |
commit | 0b31c4110d18ab32ed5a26f96937dc43ace3a7ed (patch) | |
tree | 3331df4c5b94b79908d3464d7e186612f33ccbcd /src/tools | |
parent | Merge pull request #4389 from rusty-snake/profcleaner.sh (diff) | |
download | firejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.tar.gz firejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.tar.zst firejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.zip |
profcleaner.sh: Change "# CMD" and "#CMD" too
See https://github.com/netblue30/firejail/commit/00cb8b611f0e35a56585061d689fbcca2af0566b#commitcomment-53262808
Diffstat (limited to 'src/tools')
-rwxr-xr-x | src/tools/profcleaner.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/profcleaner.sh b/src/tools/profcleaner.sh index ded3313fa..709008e08 100755 --- a/src/tools/profcleaner.sh +++ b/src/tools/profcleaner.sh | |||
@@ -37,9 +37,9 @@ else | |||
37 | profiles=("$@") | 37 | profiles=("$@") |
38 | fi | 38 | fi |
39 | 39 | ||
40 | sed -i \ | 40 | sed -i -E \ |
41 | -e "s/^blacklist/deny/" \ | 41 | -e "s/^(# |#)?blacklist/\1deny/" \ |
42 | -e "s/^noblacklist/nodeny/" \ | 42 | -e "s/^(# |#)?noblacklist/\1nodeny/" \ |
43 | -e "s/^whitelist/allow/" \ | 43 | -e "s/^(# |#)?whitelist/\1allow/" \ |
44 | -e "s/^nowhitelist/noallow/" \ | 44 | -e "s/^(# |#)?nowhitelist/\1noallow/" \ |
45 | "${profiles[@]}" | 45 | "${profiles[@]}" |