Revert securitfs change

Commit 5e60145 use findmnt with "--source" or "--target" broke
mounting securityfs.  This patch reverts only the securityfs
portion of the patch.
master
Mimi Zohar 2015-04-27 18:24:14 -04:00 committed by Harald Hoyer
parent 41ac16b26f
commit 4f50a9bfb1
1 changed files with 1 additions and 1 deletions

View File

@ -3,6 +3,6 @@
SECURITYFSDIR="/sys/kernel/security" SECURITYFSDIR="/sys/kernel/security"
export SECURITYFSDIR export SECURITYFSDIR


if ! findmnt --target "${SECURITYFSDIR}" >/dev/null 2>&1; then if ! findmnt "${SECURITYFSDIR}" >/dev/null 2>&1; then
mount -t securityfs -o nosuid,noexec,nodev securityfs ${SECURITYFSDIR} >/dev/null 2>&1 mount -t securityfs -o nosuid,noexec,nodev securityfs ${SECURITYFSDIR} >/dev/null 2>&1
fi fi