aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l/links-common.profile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-03-22 13:44:53 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-03-24 03:42:59 -0300
commit04efbb27631e2f4abb5f1c0a915612e8cc98397c (patch)
tree3b0c5d360a796880024a1c14e251522fb36ea5d7 /etc/profile-a-l/links-common.profile
parentsstmp.profile: sort disable includes (diff)
downloadfirejail-04efbb27631e2f4abb5f1c0a915612e8cc98397c.tar.gz
firejail-04efbb27631e2f4abb5f1c0a915612e8cc98397c.tar.zst
firejail-04efbb27631e2f4abb5f1c0a915612e8cc98397c.zip
profiles: replace x11 socket blacklist with disable-X11.inc
Replace all occurrences of `blacklist /tmp/.X11-unix` with `include disable-X11.inc`, which blacklists more X11-related files. Commands used to search and replace: $ git grep -Ilz '^blacklist /tmp/.X11-unix' -- \ etc/profile*/*.profile | xargs -0 perl -0 -pi -e '\ s/\nblacklist \/tmp\/.X11-unix\n/\n/; \ s/(\ninclude disable-xdg.inc\n)/\ninclude disable-X11.inc$1/; \ s/(\ninclude disable-[^Xx\n]+\n)(\n|# )/$1include disable-X11.inc\n$2/' Note: The following files were also edited manually: * etc/profile-a-l/erd.profile * etc/profile-a-l/links-common.profile * etc/profile-m-z/termshark.profile * etc/profile-m-z/tmux.profile * etc/profile-m-z/tshark.profile Relates to #4462 #4854.
Diffstat (limited to 'etc/profile-a-l/links-common.profile')
-rw-r--r--etc/profile-a-l/links-common.profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/profile-a-l/links-common.profile b/etc/profile-a-l/links-common.profile
index 636560789..4bab6b0cc 100644
--- a/etc/profile-a-l/links-common.profile
+++ b/etc/profile-a-l/links-common.profile
@@ -4,7 +4,6 @@ include links-common.local
4 4
5# common profile for links browsers 5# common profile for links browsers
6 6
7blacklist /tmp/.X11-unix
8blacklist ${RUNUSER}/wayland-* 7blacklist ${RUNUSER}/wayland-*
9 8
10include disable-common.inc 9include disable-common.inc
@@ -14,6 +13,7 @@ include disable-interpreters.inc
14# Additional noblacklist files/directories (blacklisted in disable-programs.inc) 13# Additional noblacklist files/directories (blacklisted in disable-programs.inc)
15# used as associated programs can be added in your links-common.local. 14# used as associated programs can be added in your links-common.local.
16include disable-programs.inc 15include disable-programs.inc
16include disable-X11.inc
17include disable-xdg.inc 17include disable-xdg.inc
18 18
19whitelist ${DOWNLOADS} 19whitelist ${DOWNLOADS}