From: Roberto Sassu Date: Fri, 8 Jul 2011 12:10:59 +0000 (+0200) Subject: base/init: mount the securityfs filesystem X-Git-Tag: 012~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6c418ee432bbc62633a42417d6a0c41160c404a;p=thirdparty%2Fdracut.git base/init: mount the securityfs filesystem Mount the securityfs filesystem and make available its location through the exported variable SECURITYFSDIR. Signed-off-by: Roberto Sassu Acked-by: Gianluca Ramunno --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 1fac580e3..ae834bed7 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -84,6 +84,12 @@ RD_DEBUG="" [ ! -d /sys/kernel ] && \ mount -t sysfs -o nosuid,noexec,nodev sysfs /sys >/dev/null 2>&1 +SECURITYFSDIR="/sys/kernel/security" +export SECURITYFSDIR +if ! ismounted "${SECURITYFSDIR}"; then + mount -t securityfs -o nosuid,noexec,nodev ${SECURITYFSDIR} ${SECURITYFSDIR} >/dev/null 2>&1 +fi + if [ -x /lib/systemd/systemd-timestamp ]; then RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp) else