98integrity: Use /etc/ima/ima-policy as file location for IMA policy
PATCH 1/1 98integrity: Use /etc/ima/ima-policy as file location for IMA policy
From: Stefan Berger <stefanb-r/[email protected]>
To sync with systemd, use the filepath /etc/ima/ima-policy as the file location for the IMA policy.
--- modules.d/98integrity/ima-policy-load.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
modules.d/98integrity/ima-policy-load.sh +6 -1
@@ -5,10 +5,15 @@ # Copyright (C) 2011 Politecnico di Torino, Italy # TORSEC group -- http://security.polito.it # Roberto Sassu <[email protected]> +# +# Copyright (C) 2016 IBM Corporation +# +# Stefan Berger <[email protected]> +# IMASECDIR="${SECURITYFSDIR}/ima" IMACONFIG="${NEWROOT}/etc/sysconfig/ima" -IMAPOLICY="/etc/sysconfig/ima-policy" +IMAPOLICY="/etc/ima/ima-policy" load_ima_policy() {
Signature · 1 line
2.8.3
A message that is not in the archive (sent off-list or not yet received): 1480514741-30910-1-git-send-email-stefanb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org
Quoted 22 lines · Stefan Berger
From: Stefan Berger <stefanb-r/[email protected]>
To sync with systemd, use the filepath
/etc/ima/ima-policyas the file location for the IMA policy.Signed-off-by Stefan Berger <[email protected]>--- modules.d/98integrity/ima-policy-load.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)modules.d/98integrity/ima-policy-load.sh +3
-0@@ -5,10 +5,15 @@ # Copyright (C) 2011 Politecnico di Torino, Italy # TORSEC group -- http://security.polito.it # Roberto Sassu <[email protected]> +# +# Copyright (C) 2016 IBM Corporation +#
modules.d/98integrity/ima-policy-load.sh line 19
Quoted 10 lines
modules.d/98integrity/ima-policy-load.sh +3
-1+# Stefan Berger <[email protected]> +# IMASECDIR="${SECURITYFSDIR}/ima" IMACONFIG="${NEWROOT}/etc/sysconfig/ima" -IMAPOLICY="/etc/sysconfig/ima-policy" +IMAPOLICY="/etc/ima/ima-policy" load_ima_policy() {
you might want to change $IMACONFIG also then?
Patchset imported to github.
Pull request:
<https://github.com/dracutdevs/dracut/compare/master...dracut-mailing-devs:1480514741-30910-1-git-send-email-stefanb%40linux.vnet.ibm.com>