mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-28 03:49:27 -05:00
also support /usr/local/etc/remount-disable and /usr/local/etc/noexec
This commit is contained in:
parent
0afcc5e798
commit
5a4eda0d05
@ -15,12 +15,12 @@ if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
|
|||||||
source /usr/lib/helper-scripts/pre.bsh
|
source /usr/lib/helper-scripts/pre.bsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /etc/remount-disable ]; then
|
if [ -e /etc/remount-disable ] || [ -e /usr/local/etc/remount-disable ]; then
|
||||||
echo "$0: file /etc/remount-disable exists. Doing nothing."
|
echo "$0: file /etc/remount-disable exists. Doing nothing."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /etc/noexec ]; then
|
if [ -e /etc/noexec ] || [ -e /usr/local/etc/noexec ]; then
|
||||||
noexec=true
|
noexec=true
|
||||||
echo "$0: Will remount with noexec because file /etc/noexec exists."
|
echo "$0: Will remount with noexec because file /etc/noexec exists."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user