aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-12-28 18:48:13 +0000
committerLibravatar GitHub <noreply@github.com>2021-12-28 18:48:13 +0000
commit92f438cf87234236939ed90db86162f4ae8bac76 (patch)
tree4f6f8fd560ca3c3ef978ce809d32213f1264a0c3 /etc/profile-a-l
parentImplement a `whitelist-ro` command (diff)
parentMerge pull request #4755 from kmk3/mpv-add-yt-dlp (diff)
downloadfirejail-92f438cf87234236939ed90db86162f4ae8bac76.tar.gz
firejail-92f438cf87234236939ed90db86162f4ae8bac76.tar.zst
firejail-92f438cf87234236939ed90db86162f4ae8bac76.zip
Merge branch 'master' into whitelist-ro
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r--etc/profile-a-l/cachy-browser.profile56
-rw-r--r--etc/profile-a-l/chromium-common.profile3
-rw-r--r--etc/profile-a-l/clipgrab.profile4
-rw-r--r--etc/profile-a-l/com.github.tchx84.Flatseal.profile65
-rw-r--r--etc/profile-a-l/dino.profile2
-rw-r--r--etc/profile-a-l/elinks.profile3
-rw-r--r--etc/profile-a-l/firefox-common.profile3
-rw-r--r--etc/profile-a-l/highlight.profile3
8 files changed, 138 insertions, 1 deletions
diff --git a/etc/profile-a-l/cachy-browser.profile b/etc/profile-a-l/cachy-browser.profile
new file mode 100644
index 000000000..7a14d9464
--- /dev/null
+++ b/etc/profile-a-l/cachy-browser.profile
@@ -0,0 +1,56 @@
1# Firejail profile for Cachy-Browser
2# Description: Librewolf fork based on enhanced privacy with gentoo patchset
3# This file is overwritten after every install/update
4# Persistent local customizations
5include cachy-browser.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.cache/cachy
10noblacklist ${HOME}/.cachy
11
12mkdir ${HOME}/.cache/cachy
13mkdir ${HOME}/.cachy
14whitelist ${HOME}/.cache/cachy
15whitelist ${HOME}/.cachy
16
17# Add the next lines to your cachy-browser.local if you want to use the migration wizard.
18#noblacklist ${HOME}/.mozilla
19#whitelist ${HOME}/.mozilla
20
21# To enable KeePassXC Plugin add one of the following lines to your cachy-browser.local.
22# NOTE: start KeePassXC before CachyBrowser and keep it open to allow communication between them.
23#whitelist ${RUNUSER}/kpxc_server
24#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer
25
26whitelist /usr/share/doc
27whitelist /usr/share/gtk-doc/html
28whitelist /usr/share/mozilla
29whitelist /usr/share/webext
30include whitelist-usr-share-common.inc
31
32# Add the next line to your cachy-browser.local to enable private-bin (Arch Linux).
33#private-bin dbus-launch,dbus-send,cachy-browser,sh
34# Add the next line to your cachy-browser.local to enable private-etc.
35# NOTE: private-etc must first be enabled in firefox-common.local.
36#private-etc cachy-browser
37
38dbus-user filter
39dbus-user.own org.mozilla.cachybrowser.*
40# Add the next line to your cachy-browser.local to enable native notifications.
41#dbus-user.talk org.freedesktop.Notifications
42# Add the next line to your cachy-browser.local to allow inhibiting screensavers.
43#dbus-user.talk org.freedesktop.ScreenSaver
44# Add the next lines to your cachy-browser.local for plasma browser integration.
45#dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
46#dbus-user.talk org.kde.JobViewServer
47#dbus-user.talk org.kde.kuiserver
48# Add the next line to your cachy-browser.local to allow screensharing under Wayland.
49#dbus-user.talk org.freedesktop.portal.Desktop
50# Also add the next line to your cachy-browser.local if screensharing does not work with
51# the above lines (depends on the portal implementation).
52#ignore noroot
53ignore dbus-user none
54
55# Redirect
56include firefox-common.profile
diff --git a/etc/profile-a-l/chromium-common.profile b/etc/profile-a-l/chromium-common.profile
index 7bfb61688..2992a2d6f 100644
--- a/etc/profile-a-l/chromium-common.profile
+++ b/etc/profile-a-l/chromium-common.profile
@@ -53,6 +53,9 @@ private-cache
53?BROWSER_DISABLE_U2F: private-dev 53?BROWSER_DISABLE_U2F: private-dev
54#private-tmp - issues when using multiple browser sessions 54#private-tmp - issues when using multiple browser sessions
55 55
56blacklist ${PATH}/curl
57blacklist ${PATH}/wget
58
56#dbus-user none - prevents access to passwords saved in GNOME Keyring and KWallet, also breaks Gnome connector. 59#dbus-user none - prevents access to passwords saved in GNOME Keyring and KWallet, also breaks Gnome connector.
57dbus-system none 60dbus-system none
58 61
diff --git a/etc/profile-a-l/clipgrab.profile b/etc/profile-a-l/clipgrab.profile
index f3c77fa77..084f0ccad 100644
--- a/etc/profile-a-l/clipgrab.profile
+++ b/etc/profile-a-l/clipgrab.profile
@@ -6,10 +6,14 @@ include clipgrab.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.config/ClipGrab
9noblacklist ${HOME}/.config/Philipp Schmieder 10noblacklist ${HOME}/.config/Philipp Schmieder
10noblacklist ${HOME}/.pki 11noblacklist ${HOME}/.pki
11noblacklist ${VIDEOS} 12noblacklist ${VIDEOS}
12 13
14# Allow python (blacklisted by disable-interpreters.inc)
15include allow-python3.inc
16
13include disable-common.inc 17include disable-common.inc
14include disable-devel.inc 18include disable-devel.inc
15include disable-exec.inc 19include disable-exec.inc
diff --git a/etc/profile-a-l/com.github.tchx84.Flatseal.profile b/etc/profile-a-l/com.github.tchx84.Flatseal.profile
new file mode 100644
index 000000000..a095104f0
--- /dev/null
+++ b/etc/profile-a-l/com.github.tchx84.Flatseal.profile
@@ -0,0 +1,65 @@
1# Firejail profile for flatseal
2# This file is overwritten after every install/update
3# Persistent local customizations
4include com.github.tchx84.Flatseal.local
5# Persistent global definitions
6include globals.local
7
8noblacklist ${HOME}/.local/share/flatpak/overrides
9noblacklist /var/lib/flatpak/app
10
11# Allow gjs (blacklisted by disable-interpreters.inc)
12include allow-gjs.inc
13
14include disable-common.inc
15include disable-devel.inc
16include disable-exec.inc
17include disable-interpreters.inc
18include disable-proc.inc
19include disable-programs.inc
20include disable-shell.inc
21include disable-xdg.inc
22
23mkdir ${HOME}/.local/share/flatpak/overrides
24whitelist ${HOME}/.local/share/flatpak/overrides
25include whitelist-common.inc
26include whitelist-run-common.inc
27include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc
29include whitelist-var-common.inc
30
31apparmor
32caps.drop all
33net none
34no3d
35nodvd
36nogroups
37noinput
38nonewprivs
39noprinters
40noroot
41nosound
42notv
43nou2f
44novideo
45protocol unix
46seccomp
47seccomp.block-secondary
48shell none
49tracelog
50
51disable-mnt
52private-bin com.github.tchx84.Flatseal,gjs
53private-cache
54private-dev
55private-etc alternatives,dconf,fonts,gtk-3.0,ld.so.cache,ld.so.preload
56private-tmp
57
58dbus-user filter
59dbus-user.own com.github.tchx84.Flatseal
60dbus-user.talk ca.desrt.dconf
61dbus-user.talk org.freedesktop.impl.portal.PermissionStore
62dbus-user.talk org.gnome.Software
63dbus-system none
64
65read-write ${HOME}/.local/share/flatpak/overrides
diff --git a/etc/profile-a-l/dino.profile b/etc/profile-a-l/dino.profile
index b1a9550f1..3c5a64215 100644
--- a/etc/profile-a-l/dino.profile
+++ b/etc/profile-a-l/dino.profile
@@ -32,7 +32,7 @@ nonewprivs
32noroot 32noroot
33notv 33notv
34nou2f 34nou2f
35protocol unix,inet,inet6 35protocol unix,inet,inet6,netlink
36seccomp 36seccomp
37seccomp.block-secondary 37seccomp.block-secondary
38shell none 38shell none
diff --git a/etc/profile-a-l/elinks.profile b/etc/profile-a-l/elinks.profile
index 5a29eb24b..a3596bb5e 100644
--- a/etc/profile-a-l/elinks.profile
+++ b/etc/profile-a-l/elinks.profile
@@ -9,6 +9,9 @@ include globals.local
9 9
10noblacklist ${HOME}/.elinks 10noblacklist ${HOME}/.elinks
11 11
12# Allow lua (blacklisted by disable-interpreters.inc)
13include allow-lua.inc
14
12mkdir ${HOME}/.elinks 15mkdir ${HOME}/.elinks
13whitelist ${HOME}/.elinks 16whitelist ${HOME}/.elinks
14 17
diff --git a/etc/profile-a-l/firefox-common.profile b/etc/profile-a-l/firefox-common.profile
index ef647b5a0..e7d438b46 100644
--- a/etc/profile-a-l/firefox-common.profile
+++ b/etc/profile-a-l/firefox-common.profile
@@ -59,6 +59,9 @@ disable-mnt
59#private-etc alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,group,gtk-2.0,gtk-3.0,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,localtime,machine-id,mailcap,mime.types,nsswitch.conf,pango,passwd,pki,pulse,resolv.conf,selinux,ssl,X11,xdg 59#private-etc alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,group,gtk-2.0,gtk-3.0,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,localtime,machine-id,mailcap,mime.types,nsswitch.conf,pango,passwd,pki,pulse,resolv.conf,selinux,ssl,X11,xdg
60private-tmp 60private-tmp
61 61
62blacklist ${PATH}/curl
63blacklist ${PATH}/wget
64
62# 'dbus-user none' breaks various desktop integration features like global menus, native notifications, 65# 'dbus-user none' breaks various desktop integration features like global menus, native notifications,
63# Gnome connector, KDE connect and power management on KDE Plasma. 66# Gnome connector, KDE connect and power management on KDE Plasma.
64dbus-user none 67dbus-user none
diff --git a/etc/profile-a-l/highlight.profile b/etc/profile-a-l/highlight.profile
index 0145f7ceb..97f190723 100644
--- a/etc/profile-a-l/highlight.profile
+++ b/etc/profile-a-l/highlight.profile
@@ -8,6 +8,9 @@ include globals.local
8 8
9blacklist ${RUNUSER} 9blacklist ${RUNUSER}
10 10
11# Allow lua (blacklisted by disable-interpreters.inc)
12include allow-lua.inc
13
11include disable-common.inc 14include disable-common.inc
12include disable-devel.inc 15include disable-devel.inc
13include disable-interpreters.inc 16include disable-interpreters.inc