firejail/mketc.sh
2024-01-12 11:23:22 -05:00

17 lines
525 B
Bash
Executable file

#!/bin/sh
# This file is part of Firejail project
# Copyright (C) 2014-2024 Firejail Authors
# License GPL v2
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}/busybox\
noblacklist \${PATH}/crontab\
noblacklist \${PATH}/mount\
noblacklist \${PATH}/nc\
noblacklist \${PATH}/su\
noblacklist \${PATH}/sudo\
noblacklist \${PATH}/umount\
' "$1"