aboutsummaryrefslogtreecommitdiffstats
path: root/mketc.sh
blob: f98c5479f6edf814549db4eec1a215eb33d58cfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
rm -fr .etc
mkdir .etc

for file in etc/*.profile etc/*.inc etc/*.net;
do
	sed "s;/etc/firejail;$1/firejail;g" $file > .$file
done

if [ "x$2" = "xyes" ]
then
sed -i -e '
1i# Workaround for systems where common UNIX utilities are symlinks to busybox.\
# If this is not your case you can remove --enable-busybox-workaround from\
# ./configure options, for added security.\
noblacklist \${PATH}/mount\
noblacklist \${PATH}/umount\
noblacklist \${PATH}/su\
noblacklist \${PATH}/sudo\
noblacklist \${PATH}/nc\
' .etc/disable-common.inc
fi