aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-04-07 19:52:56 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-04-07 19:52:56 -0400
commit7373cf31d4ba6638c0477a254f62552556921521 (patch)
tree5c63852fb86899be8483e99ad11e530f15329b3f /etc
parentUpdate support/EOL information (diff)
downloadfirejail-7373cf31d4ba6638c0477a254f62552556921521.tar.gz
firejail-7373cf31d4ba6638c0477a254f62552556921521.tar.zst
firejail-7373cf31d4ba6638c0477a254f62552556921521.zip
fdns profile
Diffstat (limited to 'etc')
-rw-r--r--etc/fdns.profile52
-rw-r--r--etc/server.profile25
2 files changed, 76 insertions, 1 deletions
diff --git a/etc/fdns.profile b/etc/fdns.profile
new file mode 100644
index 000000000..2ab69cd5b
--- /dev/null
+++ b/etc/fdns.profile
@@ -0,0 +1,52 @@
1# Firejail profile for server
2# This file is overwritten after every install/update
3# Persistent local customizations
4include server.local
5# Persistent global definitions
6include globals.local
7
8# generic server profile
9# it allows /sbin and /usr/sbin directories - this is where servers are installed
10# depending on your usage, you can enable some of the commands below:
11#
12noblacklist /sbin
13noblacklist /usr/sbin
14
15blacklist /tmp/.X11-unix
16blacklist ${RUNUSER}/wayland-*
17
18include disable-common.inc
19include disable-devel.inc
20include disable-exec.inc
21include disable-interpreters.inc
22include disable-passwdmgr.inc
23include disable-programs.inc
24include disable-xdg.inc
25
26caps.keep chown,kill,setgid,setuid,net_bind_service,net_admin,sys_chroot,sys_admin,syslog
27
28ipc-namespace
29# netfilter /etc/firejail/webserver.net
30no3d
31nodvd
32nogroups
33nonewprivs
34# noroot
35nosound
36notv
37nou2f
38novideo
39#seccomp
40#shell none
41
42disable-mnt
43private
44private-bin fdns,bash,sh
45# private-cache
46private-dev
47# private-etc alternatives
48# private-lib
49private-tmp
50
51protocol unix,inet,inet6
52memory-deny-write-execute
diff --git a/etc/server.profile b/etc/server.profile
index bee8df932..5bc4735ae 100644
--- a/etc/server.profile
+++ b/etc/server.profile
@@ -1,4 +1,27 @@
1# Firejail profile for server 1# Generic Firejail profile for servers started as root
2#
3# This profile is used as a default when starting the sandbox as root.
4# Example:
5#
6# $ sudo firejail
7# [sudo] password for netblue:
8# Reading profile /etc/firejail/server.profile
9# Reading profile /etc/firejail/disable-common.inc
10# Reading profile /etc/firejail/disable-passwdmgr.inc
11# Reading profile /etc/firejail/disable-programs.inc
12#
13# ** Note: you can use --noprofile to disable server.profile **
14#
15# Parent pid 5347, child pid 5348
16# The new log directory is /proc/5348/root/var/log
17# Child process initialized in 64.43 ms
18# root@debian:~#
19#
20# Customize the profile as usual. Examples: unbound.profile, fdns.profile.
21# All the rules for regular user profiles apply with the exception of
22# /usr/local/bin symlink redirection and firecfg tool. The redirection is disabled
23# by default for root user.
24
2# This file is overwritten after every install/update 25# This file is overwritten after every install/update
3# Persistent local customizations 26# Persistent local customizations
4include server.local 27include server.local