aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-05-06 13:03:15 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-05-06 13:03:15 -0400
commit4515f44e59001c13122f9e9976f420c230806737 (patch)
tree42dd67e9279f1bbfc715271fcb420bfa8f664dda /etc
parentMerge pull request #1266 from SYN-cook/patch-2 (diff)
downloadfirejail-4515f44e59001c13122f9e9976f420c230806737.tar.gz
firejail-4515f44e59001c13122f9e9976f420c230806737.tar.zst
firejail-4515f44e59001c13122f9e9976f420c230806737.zip
merge #1100 from zackw: added support for sandboxing Xpra, Xvfb and Xephyr in independent sandboxes when started with firejail --x11
Diffstat (limited to 'etc')
-rw-r--r--etc/Xephyr.profile40
-rw-r--r--etc/Xvfb.profile39
-rw-r--r--etc/xpra.profile31
3 files changed, 103 insertions, 7 deletions
diff --git a/etc/Xephyr.profile b/etc/Xephyr.profile
new file mode 100644
index 000000000..362318bb1
--- /dev/null
+++ b/etc/Xephyr.profile
@@ -0,0 +1,40 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/Xephyr.local
4
5#
6# This profile will sandbox Xephyr server itself when used with firejail --x11=xephyr.
7# The target program is sandboxed with its own profile. By default the this functionality
8# is disabled. To enable it, create a firejail-Xephyr symlink in /usr/local/bin:
9#
10# $ sudo ln -s /usr/bin/firejail /usr/local/bin/Xephyr
11#
12# We have this functionality disabled by default because it creates problems on
13# some Linux distributions.
14#
15
16
17# using a private home directory
18private
19
20
21caps.drop all
22# Xephyr needs to be allowed access to the abstract Unix socket namespace.
23#net none
24nogroups
25nonewprivs
26# In noroot mode, Xephyr cannot create a socket in the real /tmp/.X11-unix.
27#noroot
28nosound
29shell none
30seccomp
31protocol unix
32
33private-dev
34private-tmp
35#private-bin Xephyr,sh,xkbcomp,strace,bash,cat,ls
36#private-bin Xephyr,sh,xkbcomp
37#private-etc ld.so.conf,ld.so.cache,resolv.conf,host.conf,nsswitch.conf,gai.conf,hosts,hostname
38
39blacklist /media
40whitelist /var/lib/xkb
diff --git a/etc/Xvfb.profile b/etc/Xvfb.profile
new file mode 100644
index 000000000..9c919f432
--- /dev/null
+++ b/etc/Xvfb.profile
@@ -0,0 +1,39 @@
1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file.
3include /etc/firejail/xvfb.local
4
5#
6# This profile will sandbox Xvfb server itself when used with firejail --x11=xvfb.
7# The target program is sandboxed with its own profile. By default the this functionality
8# is disabled. To enable it, create a firejail-Xvfb symlink in /usr/local/bin:
9#
10# $ sudo ln -s /usr/bin/firejail /usr/local/bin/Xvfb
11#
12# We have this functionality disabled by default because it creates problems on
13# some Linux distributions.
14#
15
16
17# using a private home directory
18private
19
20caps.drop all
21# Xvfb needs to be allowed access to the abstract Unix socket namespace.
22#net none
23nogroups
24nonewprivs
25# In noroot mode, Xvfb cannot create a socket in the real /tmp/.X11-unix.
26#noroot
27nosound
28shell none
29seccomp
30protocol unix
31
32private-dev
33private-tmp
34private-etc ld.so.conf,ld.so.cache,resolv.conf,host.conf,nsswitch.conf,gai.conf,hosts,hostname
35#private-bin Xvfb,sh,xkbcomp,strace,bash,cat,ls
36#private-bin Xvfb,sh,xkbcomp
37
38blacklist /media
39whitelist /var/lib/xkb
diff --git a/etc/xpra.profile b/etc/xpra.profile
index d0fff2ebf..f4f28f9de 100644
--- a/etc/xpra.profile
+++ b/etc/xpra.profile
@@ -2,26 +2,43 @@
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include /etc/firejail/xpra.local 3include /etc/firejail/xpra.local
4 4
5# xpra profile 5
6#
7# This profile will sandbox Xpra server itself when used with firejail --x11=xpra.
8# The target program is sandboxed with its own profile. By default the this functionality
9# is disabled. To enable it, create a firejail-xpra symlink in /usr/local/bin:
10#
11# $ sudo ln -s /usr/bin/firejail /usr/local/bin/xpra
12#
13# We have this functionality disabled by default because it creates problems on
14# some Linux distributions.
15#
16
17# private home directory doesn't work on some distros, so we go for a regular home
18#private
6include /etc/firejail/disable-common.inc 19include /etc/firejail/disable-common.inc
7include /etc/firejail/disable-programs.inc 20include /etc/firejail/disable-programs.inc
8include /etc/firejail/disable-devel.inc 21include /etc/firejail/disable-devel.inc
9include /etc/firejail/disable-passwdmgr.inc 22include /etc/firejail/disable-passwdmgr.inc
10 23
11caps.drop all 24caps.drop all
12netfilter 25# xpra needs to be allowed access to the abstract Unix socket namespace.
26#net none
13nogroups 27nogroups
14nonewprivs 28nonewprivs
15noroot 29# In noroot mode, xpra cannot create a socket in the real /tmp/.X11-unix.
30#noroot
16nosound 31nosound
17shell none 32shell none
18seccomp 33seccomp
19protocol unix,inet,inet6 34protocol unix
20 35
21# blacklist /tmp/.X11-unix
22 36
23# private-bin
24private-dev 37private-dev
25private-tmp 38private-tmp
26# private-etc 39#private-bin xpra,python,Xvfb,Xorg,sh,xkbcomp,xauth,dbus-launch,pactl,ldconfig,which,strace,bash,cat,ls
40#private-etc ld.so.conf,ld.so.cache,resolv.conf,host.conf,nsswitch.conf,gai.conf,hosts,hostname,machine-id,xpra,X11
41
42blacklist /media
43whitelist /var/lib/xkb
27 44