diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc index 14f7d8cf7..faae99543 100644 --- a/etc/inc/disable-common.inc +++ b/etc/inc/disable-common.inc @@ -171,6 +171,10 @@ blacklist ${RUNUSER}/gsconnect blacklist ${RUNUSER}/i3/ipc-socket.* blacklist /tmp/i3-*/ipc-socket.* +# sway IPC socket (allows arbitrary shell script execution) +blacklist ${RUNUSER}/sway-ipc.* +blacklist /tmp/sway-ipc.* + # systemd blacklist ${HOME}/.config/systemd blacklist ${HOME}/.local/share/systemd diff --git a/etc/profile-m-z/sway.profile b/etc/profile-m-z/sway.profile index f71905150..b7f90f6ad 100644 --- a/etc/profile-m-z/sway.profile +++ b/etc/profile-m-z/sway.profile @@ -10,6 +10,10 @@ include globals.local noblacklist ${HOME}/.config/sway # sway uses ~/.config/i3 as fallback if there is no ~/.config/sway noblacklist ${HOME}/.config/i3 +# allow creation of IPC socket +noblacklist ${RUNUSER}/sway-ipc.* +noblacklist /tmp/sway-ipc.* + include disable-common.inc caps.drop all