aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-03-25 06:42:07 +0000
committerLibravatar GitHub <noreply@github.com>2024-03-25 06:42:07 +0000
commit7047e1a68955adc789d028ededdf0790a45d01f5 (patch)
tree6b68bb17d28465f91d72f0640dc6138b9ef6b6df
parentbuild(deps): bump github/codeql-action from 3.24.7 to 3.24.9 (diff)
downloadfirejail-7047e1a68955adc789d028ededdf0790a45d01f5.tar.gz
firejail-7047e1a68955adc789d028ededdf0790a45d01f5.tar.zst
firejail-7047e1a68955adc789d028ededdf0790a45d01f5.zip
New profile: qemu-common.profile (#6287)
Add a common profile to deduplicate entries and make qemu-related profiles redirect to it. Relates to #6255.
-rw-r--r--etc/profile-m-z/qemu-common.profile28
-rw-r--r--etc/profile-m-z/qemu-launcher.profile21
-rw-r--r--etc/profile-m-z/qemu-system-x86_64.profile21
-rw-r--r--etc/profile-m-z/tqemu.profile17
4 files changed, 37 insertions, 50 deletions
diff --git a/etc/profile-m-z/qemu-common.profile b/etc/profile-m-z/qemu-common.profile
new file mode 100644
index 000000000..bf8c2b977
--- /dev/null
+++ b/etc/profile-m-z/qemu-common.profile
@@ -0,0 +1,28 @@
1# Firejail profile for QEMU
2# Description: Machine & userspace emulator and virtualizer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include qemu-common.local
6# Persistent global definitions
7# added by caller profile
8#include globals.local
9
10include disable-common.inc
11include disable-programs.inc
12
13caps.drop all
14netfilter
15nodvd
16nogroups
17nonewprivs
18noroot
19notv
20protocol unix,inet,inet6
21seccomp
22tracelog
23
24private-cache
25private-tmp
26
27noexec /tmp
28restrict-namespaces
diff --git a/etc/profile-m-z/qemu-launcher.profile b/etc/profile-m-z/qemu-launcher.profile
index 8484d3705..5eab480dc 100644
--- a/etc/profile-m-z/qemu-launcher.profile
+++ b/etc/profile-m-z/qemu-launcher.profile
@@ -7,22 +7,5 @@ include globals.local
7 7
8noblacklist ${HOME}/.qemu-launcher 8noblacklist ${HOME}/.qemu-launcher
9 9
10include disable-common.inc 10# Redirect
11include disable-programs.inc 11include qemu-common.profile
12
13caps.drop all
14netfilter
15nodvd
16nogroups
17nonewprivs
18noroot
19notv
20protocol unix,inet,inet6
21seccomp
22tracelog
23
24private-cache
25private-tmp
26
27noexec /tmp
28restrict-namespaces
diff --git a/etc/profile-m-z/qemu-system-x86_64.profile b/etc/profile-m-z/qemu-system-x86_64.profile
index 495c469f7..27dd31af1 100644
--- a/etc/profile-m-z/qemu-system-x86_64.profile
+++ b/etc/profile-m-z/qemu-system-x86_64.profile
@@ -6,22 +6,5 @@ include qemu-system-x86_64.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9include disable-common.inc 9# Redirect
10include disable-programs.inc 10include qemu-common.profile
11
12caps.drop all
13netfilter
14nodvd
15nogroups
16nonewprivs
17noroot
18notv
19protocol unix,inet,inet6
20seccomp
21tracelog
22
23private-cache
24private-tmp
25
26noexec /tmp
27restrict-namespaces
diff --git a/etc/profile-m-z/tqemu.profile b/etc/profile-m-z/tqemu.profile
index cf83202f7..d46cf15d9 100644
--- a/etc/profile-m-z/tqemu.profile
+++ b/etc/profile-m-z/tqemu.profile
@@ -6,21 +6,14 @@ include tqemu.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9include disable-common.inc 9# breaks app
10include disable-programs.inc 10ignore restrict-namespaces
11 11
12# For host-only network sys_admin is needed. 12# For host-only network sys_admin is needed.
13# See https://github.com/netblue30/firejail/issues/2868#issuecomment-518647630 13# See https://github.com/netblue30/firejail/issues/2868#issuecomment-518647630
14ignore caps.drop all
14caps.keep net_raw,sys_nice 15caps.keep net_raw,sys_nice
15#caps.keep net_raw,sys_admin 16#caps.keep net_raw,sys_admin
16netfilter
17nodvd
18notv
19tracelog
20
21private-cache
22private-tmp
23 17
24noexec /tmp 18# Redirect
25# breaks app 19include qemu-common.profile
26#restrict-namespaces