aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar rusty-snake <print_hello_world+Public@protonmail.com>2019-06-02 13:17:29 +0200
committerLibravatar rusty-snake <print_hello_world+Public@protonmail.com>2019-06-02 13:17:29 +0200
commit1dc73328142faad4cce15778878d34a14f16c435 (patch)
tree83349cdfc799a65a572f152eaf53320364d45a45 /etc
parentAdd profiles for klatexformula, klatexformula_cmdl (diff)
parentAdd profile for links and xlinks (#2734) (diff)
downloadfirejail-1dc73328142faad4cce15778878d34a14f16c435.tar.gz
firejail-1dc73328142faad4cce15778878d34a14f16c435.tar.zst
firejail-1dc73328142faad4cce15778878d34a14f16c435.zip
Merge branch 'master' of github.com:netblue30/firejail
Diffstat (limited to 'etc')
-rw-r--r--etc/disable-programs.inc1
-rw-r--r--etc/links.profile64
-rw-r--r--etc/xlinks.profile18
3 files changed, 83 insertions, 0 deletions
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index 1c3ff7840..c8e85cf1f 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -432,6 +432,7 @@ blacklist ${HOME}/.kodi
432blacklist ${HOME}/.lincity-ng 432blacklist ${HOME}/.lincity-ng
433blacklist ${HOME}/.linphone-history.db 433blacklist ${HOME}/.linphone-history.db
434blacklist ${HOME}/.linphonerc 434blacklist ${HOME}/.linphonerc
435blacklist ${HOME}/.links
435blacklist ${HOME}/.lmmsrc.xml 436blacklist ${HOME}/.lmmsrc.xml
436blacklist ${HOME}/.local/lib/vivaldi 437blacklist ${HOME}/.local/lib/vivaldi
437blacklist ${HOME}/.local/share/0ad 438blacklist ${HOME}/.local/share/0ad
diff --git a/etc/links.profile b/etc/links.profile
new file mode 100644
index 000000000..99b445fe0
--- /dev/null
+++ b/etc/links.profile
@@ -0,0 +1,64 @@
1# Firejail profile for links
2# Description: Text WWW browser
3# This file is overwritten after every install/update
4# Persistent local customizations
5include links.local
6# Persistent global definitions
7include globals.local
8
9blacklist /tmp/.X11-unix
10
11noblacklist ${HOME}/.links
12
13include disable-common.inc
14include disable-devel.inc
15include disable-exec.inc
16include disable-interpreters.inc
17include disable-passwdmgr.inc
18# you may want to noblacklist files/directories blacklisted in
19# disable-programs.inc and used as associated programs
20include disable-programs.inc
21include disable-xdg.inc
22
23mkdir ${HOME}/.links
24whitelist ${HOME}/.links
25whitelist ${DOWNLOADS}
26include whitelist-var-common.inc
27
28caps.drop all
29ipc-namespace
30# comment machine-id (or put 'ignore machine-id' in your links.local) if you want
31# to allow access only to user-configured associated media player
32machine-id
33netfilter
34# comment no3d (or put 'ignore no3d' in your links.local) if you want
35# to allow access only to user-configured associated media player
36no3d
37nodvd
38nogroups
39nonewprivs
40noroot
41# comment nosound (or put 'ignore nosound' in your links.local) if you want
42# to allow access only to user-configured associated media player
43nosound
44notv
45nou2f
46novideo
47protocol unix,inet,inet6
48seccomp
49shell none
50tracelog
51
52disable-mnt
53# if you want to use user-configured programs add 'private-bin PROGRAM1,PROGRAM2' to your links.local
54# or append 'PROGRAM1,PROGRAM2' to this private-bin line
55private-bin links,sh
56private-cache
57private-dev
58private-etc alternatives,ca-certificates,crypto-policies,nsswitch.conf,pki,resolv.conf,ssl
59# Uncomment the following line (or put it in your links.local) allow external
60# media players
61# private-etc alsa,asound.conf,machine-id,openal,pulse
62private-tmp
63
64memory-deny-write-execute
diff --git a/etc/xlinks.profile b/etc/xlinks.profile
new file mode 100644
index 000000000..775d6f8ed
--- /dev/null
+++ b/etc/xlinks.profile
@@ -0,0 +1,18 @@
1# Firejail profile for xlinks
2# Description: Text WWW browser (X11)
3# This file is overwritten after every install/update
4# Persistent local customizations
5include xlinks.local
6
7noblacklist /tmp/.X11-unix
8noblacklist ${HOME}/.links
9
10include whitelist-common.inc
11
12# if you want to use user-configured programs add 'private-bin PROGRAM1,PROGRAM2'
13# to your xlinks.local or append 'PROGRAM1,PROGRAM2' to this private-bin line
14private-bin xlinks
15private-etc fonts
16
17# Redirect
18include links.profile \ No newline at end of file