aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tad <tad@spotco.us>2017-09-18 14:27:58 -0400
committerLibravatar Tad <tad@spotco.us>2017-09-18 14:27:58 -0400
commitae5948cb84bd1327ab9f6f0577fd75bfe9a74787 (patch)
treeee6f8a1bd5659453c8ecf24036adaef8f11bee3b
parentAdd a profile for ClamAV's clamscan (diff)
downloadfirejail-ae5948cb84bd1327ab9f6f0577fd75bfe9a74787.tar.gz
firejail-ae5948cb84bd1327ab9f6f0577fd75bfe9a74787.tar.zst
firejail-ae5948cb84bd1327ab9f6f0577fd75bfe9a74787.zip
Add a profile for clamdscan, clamdtop, and freshclam
-rw-r--r--etc/clamav.profile32
-rw-r--r--etc/clamdscan.profile6
-rw-r--r--etc/clamdtop.profile6
-rw-r--r--etc/clamscan.profile32
-rw-r--r--etc/freshclam.profile34
-rw-r--r--src/firecfg/firecfg.config3
6 files changed, 84 insertions, 29 deletions
diff --git a/etc/clamav.profile b/etc/clamav.profile
new file mode 100644
index 000000000..a5aacc1d5
--- /dev/null
+++ b/etc/clamav.profile
@@ -0,0 +1,32 @@
1# Firejail profile for clamav
2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include /etc/firejail/clamav.local
6# Persistent global definitions
7include /etc/firejail/globals.local
8
9
10caps.drop all
11ipc-namespace
12net none
13no3d
14nodvd
15nogroups
16nonewprivs
17noroot
18nosound
19notv
20novideo
21protocol unix
22seccomp
23shell none
24tracelog
25x11 none
26
27private-dev
28read-only ${HOME}
29
30memory-deny-write-execute
31noexec ${HOME}
32noexec /tmp
diff --git a/etc/clamdscan.profile b/etc/clamdscan.profile
new file mode 100644
index 000000000..1fc728206
--- /dev/null
+++ b/etc/clamdscan.profile
@@ -0,0 +1,6 @@
1# Firejail profile alias for clamav
2# This file is overwritten after every install/update
3
4
5# Redirect
6include /etc/firejail/clamav.profile
diff --git a/etc/clamdtop.profile b/etc/clamdtop.profile
new file mode 100644
index 000000000..1fc728206
--- /dev/null
+++ b/etc/clamdtop.profile
@@ -0,0 +1,6 @@
1# Firejail profile alias for clamav
2# This file is overwritten after every install/update
3
4
5# Redirect
6include /etc/firejail/clamav.profile
diff --git a/etc/clamscan.profile b/etc/clamscan.profile
index 2fd10171f..1fc728206 100644
--- a/etc/clamscan.profile
+++ b/etc/clamscan.profile
@@ -1,32 +1,6 @@
1# Firejail profile for clamscan 1# Firejail profile alias for clamav
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include /etc/firejail/clamscan.local
6# Persistent global definitions
7include /etc/firejail/globals.local
8 3
9 4
10caps.drop all 5# Redirect
11ipc-namespace 6include /etc/firejail/clamav.profile
12net none
13no3d
14nodvd
15nogroups
16nonewprivs
17noroot
18nosound
19notv
20novideo
21protocol unix
22seccomp
23shell none
24tracelog
25x11 none
26
27private-dev
28read-only ${HOME}
29
30memory-deny-write-execute
31noexec ${HOME}
32noexec /tmp
diff --git a/etc/freshclam.profile b/etc/freshclam.profile
new file mode 100644
index 000000000..08eac5595
--- /dev/null
+++ b/etc/freshclam.profile
@@ -0,0 +1,34 @@
1# Firejail profile for freshclam
2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include /etc/firejail/clamav.local
6# Persistent global definitions
7include /etc/firejail/globals.local
8
9
10caps.keep setgid,setuid
11ipc-namespace
12netfilter
13no3d
14nodvd
15nogroups
16nonewprivs
17nosound
18notv
19novideo
20protocol unix,inet,inet6
21seccomp
22shell none
23tracelog
24
25disable-mnt
26private
27private-dev
28private-tmp
29writable-var
30writable-var-log
31
32memory-deny-write-execute
33noexec ${HOME}
34noexec /tmp
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index e623a1aa2..600743a41 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -41,6 +41,8 @@ catfish
41cherrytree 41cherrytree
42chromium 42chromium
43chromium-browser 43chromium-browser
44clamdscan
45clamdtop
44clamscan 46clamscan
45claws-mail 47claws-mail
46clementine 48clementine
@@ -86,6 +88,7 @@ flashpeak-slimjet
86flowblade 88flowblade
87fontforge 89fontforge
88franz 90franz
91freshclam
89frozen-bubble 92frozen-bubble
90gajim 93gajim
91galculator 94galculator