aboutsummaryrefslogtreecommitdiffstats
path: root/mketc.sh
blob: 4eb29963c0ab7edb701faa9455be981503d0a367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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\
noblacklist \${PATH}/crontab\
' .etc/disable-common.inc
fi