25 lines
935 B
Diff
25 lines
935 B
Diff
|
From 4f50a9bfb109f1705ca987db6301c3c66a00ea75 Mon Sep 17 00:00:00 2001
|
||
|
From: Mimi Zohar <zohar@linux.vnet.ibm.com>
|
||
|
Date: Mon, 27 Apr 2015 18:24:14 -0400
|
||
|
Subject: [PATCH] Revert securitfs change
|
||
|
|
||
|
Commit 5e60145 use findmnt with "--source" or "--target" broke
|
||
|
mounting securityfs. This patch reverts only the securityfs
|
||
|
portion of the patch.
|
||
|
---
|
||
|
modules.d/96securityfs/securityfs.sh | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/modules.d/96securityfs/securityfs.sh b/modules.d/96securityfs/securityfs.sh
|
||
|
index 8ccb151..8e57571 100755
|
||
|
--- a/modules.d/96securityfs/securityfs.sh
|
||
|
+++ b/modules.d/96securityfs/securityfs.sh
|
||
|
@@ -3,6 +3,6 @@
|
||
|
SECURITYFSDIR="/sys/kernel/security"
|
||
|
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
|
||
|
fi
|