mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
23 lines
575 B
Bash
Executable file
23 lines
575 B
Bash
Executable file
#!/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
|