Skip to content

Commit 6e29e58

Browse files
committed
profiles: deny access to ~/.config/autostart
The files in this directory are intended to be automatically executed when the user logs in. In which case, granting write access to this directory allows the program to easily escape the sandbox (by autostarting itself outside of firejail, for example). Misc: This was noticed on netblue30#6244.
1 parent df257a8 commit 6e29e58

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

etc/profile-a-l/dropbox.profile

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ include dropbox.local
55
# Persistent global definitions
66
include globals.local
77

8-
noblacklist ${HOME}/.config/autostart
8+
# To allow the program to autostart, add the following to dropbox.local:
9+
# Warning: This allows the program to easily escape the sandbox.
10+
#noblacklist ${HOME}/.config/autostart
11+
#mkfile ${HOME}/.config/autostart/dropbox.desktop
12+
#whitelist ${HOME}/.config/autostart/dropbox.desktop
13+
914
noblacklist ${HOME}/.dropbox
1015
noblacklist ${HOME}/.dropbox-dist
1116

@@ -20,8 +25,6 @@ include disable-programs.inc
2025
mkdir ${HOME}/.dropbox
2126
mkdir ${HOME}/.dropbox-dist
2227
mkdir ${HOME}/Dropbox
23-
mkfile ${HOME}/.config/autostart/dropbox.desktop
24-
whitelist ${HOME}/.config/autostart/dropbox.desktop
2528
whitelist ${HOME}/.dropbox
2629
whitelist ${HOME}/.dropbox-dist
2730
whitelist ${HOME}/Dropbox

etc/profile-a-l/gitter.profile

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ include gitter.local
55
# Persistent global definitions
66
include globals.local
77

8-
noblacklist ${HOME}/.config/autostart
8+
# To allow the program to autostart, add the following to gitter.local:
9+
# Warning: This allows the program to easily escape the sandbox.
10+
#noblacklist ${HOME}/.config/autostart
11+
#whitelist ${HOME}/.config/autostart
12+
913
noblacklist ${HOME}/.config/Gitter
1014

1115
include disable-common.inc
@@ -16,7 +20,6 @@ include disable-programs.inc
1620

1721
mkdir ${HOME}/.config/Gitter
1822
whitelist ${DOWNLOADS}
19-
whitelist ${HOME}/.config/autostart
2023
whitelist ${HOME}/.config/Gitter
2124
whitelist /opt/Gitter
2225
include whitelist-var-common.inc

etc/profile-m-z/meteo-qt.profile

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ include meteo-qt.local
66
# Persistent global definitions
77
include globals.local
88

9-
noblacklist ${HOME}/.config/autostart
9+
# To allow the program to autostart, add the following to meteo-qt.local:
10+
# Warning: This allows the program to easily escape the sandbox.
11+
#noblacklist ${HOME}/.config/autostart
12+
#whitelist ${HOME}/.config/autostart
13+
1014
noblacklist ${HOME}/.config/meteo-qt
1115

1216
# Allow python (blacklisted by disable-interpreters.inc)
@@ -21,7 +25,6 @@ include disable-shell.inc
2125
include disable-xdg.inc
2226

2327
mkdir ${HOME}/.config/meteo-qt
24-
whitelist ${HOME}/.config/autostart
2528
whitelist ${HOME}/.config/meteo-qt
2629
include whitelist-common.inc
2730
include whitelist-var-common.inc

0 commit comments

Comments
 (0)