aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2024-07-27 22:38:07 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-27 22:38:07 +0000
commit86bc5bd6029a6aa06393802560180c86f9a349b9 (patch)
treeee8efc5bb60765b7b9d89aad9b0a6e95370d6624 /etc/profile-a-l
parentprofiles: bijiben: update webkit var and disable in firecfg (#6418) (diff)
downloadfirejail-86bc5bd6029a6aa06393802560180c86f9a349b9.tar.gz
firejail-86bc5bd6029a6aa06393802560180c86f9a349b9.tar.zst
firejail-86bc5bd6029a6aa06393802560180c86f9a349b9.zip
profiles: refactor dbus debugger profiles (#6420)
There are a lot of common options in the `d-feet` and `d-spy` profiles. Create a new common include file and refactor the existing profiles as redirects. Relates to #2492 #6328.
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r--etc/profile-a-l/d-feet.profile39
-rw-r--r--etc/profile-a-l/d-spy.profile40
-rw-r--r--etc/profile-a-l/dbus-debug-common.profile49
3 files changed, 56 insertions, 72 deletions
diff --git a/etc/profile-a-l/d-feet.profile b/etc/profile-a-l/d-feet.profile
index 75338eb6d..e11134616 100644
--- a/etc/profile-a-l/d-feet.profile
+++ b/etc/profile-a-l/d-feet.profile
@@ -12,45 +12,16 @@ noblacklist ${HOME}/.config/d-feet
12include allow-python2.inc 12include allow-python2.inc
13include allow-python3.inc 13include allow-python3.inc
14 14
15include disable-common.inc
16include disable-devel.inc
17include disable-exec.inc
18include disable-interpreters.inc
19include disable-programs.inc
20include disable-shell.inc
21include disable-xdg.inc
22
23mkdir ${HOME}/.config/d-feet 15mkdir ${HOME}/.config/d-feet
24whitelist ${HOME}/.config/d-feet 16whitelist ${HOME}/.config/d-feet
25whitelist /usr/share/d-feet 17whitelist /usr/share/d-feet
26include whitelist-common.inc
27include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc
29include whitelist-var-common.inc
30 18
31apparmor 19# breaks on Ubuntu
32caps.drop all 20ignore net none
33ipc-namespace
34#net none # breaks on Ubuntu
35no3d
36nodvd
37nogroups
38noinput
39nonewprivs
40noroot
41nosound
42notv
43nou2f
44novideo
45protocol unix
46seccomp
47 21
48disable-mnt
49private-bin d-feet,python* 22private-bin d-feet,python*
50private-cache
51private-dev
52private-etc dbus-1
53private-tmp
54 23
55#memory-deny-write-execute # breaks on Arch (see issue #1803) 24#memory-deny-write-execute # breaks on Arch (see issue #1803)
56restrict-namespaces 25
26# Redirect
27include dbus-debug-common.profile
diff --git a/etc/profile-a-l/d-spy.profile b/etc/profile-a-l/d-spy.profile
index 9ff429ecb..2c9ef52cb 100644
--- a/etc/profile-a-l/d-spy.profile
+++ b/etc/profile-a-l/d-spy.profile
@@ -6,43 +6,7 @@ include d-spy.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9include disable-common.inc
10include disable-devel.inc
11include disable-exec.inc
12include disable-interpreters.inc
13include disable-proc.inc
14include disable-programs.inc
15include disable-shell.inc
16include disable-xdg.inc
17
18include whitelist-common.inc
19include whitelist-runuser-common.inc
20include whitelist-usr-share-common.inc
21include whitelist-var-common.inc
22
23apparmor
24caps.drop all
25ipc-namespace
26net none
27no3d
28nodvd
29nogroups
30noinput
31nonewprivs
32noroot
33nosound
34notv
35nou2f
36novideo
37protocol unix
38seccomp
39
40disable-mnt
41private-bin d-spy 9private-bin d-spy
42private-cache
43private-dev
44private-etc dbus-1
45private-tmp
46 10
47read-only ${HOME} 11# Redirect
48restrict-namespaces 12include dbus-debug-common.profile
diff --git a/etc/profile-a-l/dbus-debug-common.profile b/etc/profile-a-l/dbus-debug-common.profile
new file mode 100644
index 000000000..0ef060f3a
--- /dev/null
+++ b/etc/profile-a-l/dbus-debug-common.profile
@@ -0,0 +1,49 @@
1# Firejail profile for dbus-debug-common
2# This file is overwritten after every install/update
3# Persistent local customizations
4include dbus-debug-common.local
5# Persistent global definitions
6# added by caller profile
7#include globals.local
8
9include disable-common.inc
10include disable-devel.inc
11include disable-exec.inc
12include disable-interpreters.inc
13include disable-proc.inc
14include disable-programs.inc
15include disable-shell.inc
16include disable-xdg.inc
17
18include whitelist-common.inc
19include whitelist-runuser-common.inc
20include whitelist-usr-share-common.inc
21include whitelist-var-common.inc
22
23apparmor
24caps.drop all
25ipc-namespace
26net none
27no3d
28nodvd
29nogroups
30noinput
31nonewprivs
32noroot
33nosound
34notv
35nou2f
36novideo
37protocol unix
38seccomp
39seccomp.block-secondary
40tracelog
41
42disable-mnt
43private-cache
44private-dev
45private-etc dbus-1
46private-tmp
47
48read-only ${HOME}
49restrict-namespaces