aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l/kate.profile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-11 05:26:05 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-09-08 04:57:37 -0300
commitc6d33375cc34e4e5e527ab43c219adfbc8848c62 (patch)
tree0ccf4359f9b8ab8a5c4e37bd042fbf19314f12a8 /etc/profile-a-l/kate.profile
parentprofiles: fix some comments (diff)
downloadfirejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.gz
firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.zst
firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.zip
profiles: fix commented code and eol comments
Main changes: * Remove the space after `#` for commented code lines to distinguish them from normal comments * Use `#` instead of `-` for comments at the end of the line so that commented code lines work after being uncommented Commands used to search and replace: arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \ sh -c "printf '%s\n' \"\$(sed -E \ -e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \ -e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \ -e 's/^# (whitelist \\$)/#\\1/' \ -e 's/^(#[^ ].+) --? /\\1 # /' \ '{}')\" >'{}'" Commands used to check for leftover entries: arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile* See also commit 30f9ad908 ("build: improve comments in firecfg.config", 2023-08-05) / PR #5942.
Diffstat (limited to 'etc/profile-a-l/kate.profile')
-rw-r--r--etc/profile-a-l/kate.profile16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile
index 152f73d5d..f141a25e1 100644
--- a/etc/profile-a-l/kate.profile
+++ b/etc/profile-a-l/kate.profile
@@ -28,17 +28,17 @@ noblacklist ${HOME}/.local/share/kxmlgui5/katesearch
28include allow-common-devel.inc 28include allow-common-devel.inc
29 29
30include disable-common.inc 30include disable-common.inc
31# include disable-devel.inc 31#include disable-devel.inc
32include disable-exec.inc 32include disable-exec.inc
33# include disable-interpreters.inc 33#include disable-interpreters.inc
34include disable-programs.inc 34include disable-programs.inc
35 35
36include whitelist-run-common.inc 36include whitelist-run-common.inc
37include whitelist-var-common.inc 37include whitelist-var-common.inc
38 38
39# apparmor 39#apparmor
40caps.drop all 40caps.drop all
41# net none 41#net none
42netfilter 42netfilter
43nodvd 43nodvd
44nogroups 44nogroups
@@ -52,13 +52,13 @@ novideo
52protocol unix 52protocol unix
53seccomp 53seccomp
54 54
55# private-bin kate,kbuildsycoca4,kdeinit4 55#private-bin kate,kbuildsycoca4,kdeinit4
56private-dev 56private-dev
57# private-etc alternatives,fonts,kde4rc,kde5rc,ld.so.cache,machine-id,xdg 57#private-etc alternatives,fonts,kde4rc,kde5rc,ld.so.cache,machine-id,xdg
58private-tmp 58private-tmp
59 59
60# dbus-user none 60#dbus-user none
61# dbus-system none 61#dbus-system none
62 62
63restrict-namespaces 63restrict-namespaces
64join-or-start kate 64join-or-start kate