aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Shahriar Heidrich <smheidrich@weltenfunktion.de>2024-06-08 10:52:17 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-08 08:52:17 +0000
commit533db20e9912e782e149e49d2e3a86e842a2b3af (patch)
treeed02316d96bde0aecbb25c98fbbd8391696ab920
parentNew profile: armcord (#6365) (diff)
downloadfirejail-533db20e9912e782e149e49d2e3a86e842a2b3af.tar.gz
firejail-533db20e9912e782e149e49d2e3a86e842a2b3af.tar.zst
firejail-533db20e9912e782e149e49d2e3a86e842a2b3af.zip
profiles: blacklist i3 IPC socket & dir except for i3 itself (#6361)
This closes the escape route discussed in #6357. It's left open for i3's own profile, so that people who run i3 itself sandboxed still have the option to use IPC with it at all. Reference for file paths: https://i3wm.org/docs/userguide.html#_interprocess_communication
-rw-r--r--etc/inc/disable-common.inc4
-rw-r--r--etc/inc/disable-programs.inc2
-rw-r--r--etc/profile-a-l/i3.profile4
3 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index 55aabbc73..14f7d8cf7 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -167,6 +167,10 @@ blacklist ${RUNUSER}/gnome-session-leader-fifo
167blacklist ${RUNUSER}/gnome-shell 167blacklist ${RUNUSER}/gnome-shell
168blacklist ${RUNUSER}/gsconnect 168blacklist ${RUNUSER}/gsconnect
169 169
170# i3 IPC socket (allows arbitrary shell script execution)
171blacklist ${RUNUSER}/i3/ipc-socket.*
172blacklist /tmp/i3-*/ipc-socket.*
173
170# systemd 174# systemd
171blacklist ${HOME}/.config/systemd 175blacklist ${HOME}/.config/systemd
172blacklist ${HOME}/.local/share/systemd 176blacklist ${HOME}/.local/share/systemd
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 73876fde3..d2f8b8cfa 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -1251,11 +1251,13 @@ blacklist ${HOME}/yt-dlp.conf
1251blacklist ${HOME}/yt-dlp.conf.txt 1251blacklist ${HOME}/yt-dlp.conf.txt
1252blacklist ${RUNUSER}/*firefox* 1252blacklist ${RUNUSER}/*firefox*
1253blacklist ${RUNUSER}/akonadi 1253blacklist ${RUNUSER}/akonadi
1254blacklist ${RUNUSER}/i3
1254blacklist ${RUNUSER}/psd/*firefox* 1255blacklist ${RUNUSER}/psd/*firefox*
1255blacklist ${RUNUSER}/qutebrowser 1256blacklist ${RUNUSER}/qutebrowser
1256blacklist /etc/ssmtp 1257blacklist /etc/ssmtp
1257blacklist /tmp/.wine-* 1258blacklist /tmp/.wine-*
1258blacklist /tmp/akonadi-* 1259blacklist /tmp/akonadi-*
1260blacklist /tmp/i3-*
1259blacklist /tmp/lwjgl_* 1261blacklist /tmp/lwjgl_*
1260blacklist /var/games/nethack 1262blacklist /var/games/nethack
1261blacklist /var/games/slashem 1263blacklist /var/games/slashem
diff --git a/etc/profile-a-l/i3.profile b/etc/profile-a-l/i3.profile
index 2268072ef..412e31762 100644
--- a/etc/profile-a-l/i3.profile
+++ b/etc/profile-a-l/i3.profile
@@ -8,6 +8,10 @@ include globals.local
8 8
9# all applications started in i3 will run in this profile 9# all applications started in i3 will run in this profile
10noblacklist ${HOME}/.config/i3 10noblacklist ${HOME}/.config/i3
11noblacklist ${RUNUSER}/i3
12noblacklist ${RUNUSER}/i3/ipc-socket.*
13noblacklist /tmp/i3-*
14noblacklist /tmp/i3-*/ipc-socket.*
11include disable-common.inc 15include disable-common.inc
12 16
13caps.drop all 17caps.drop all