Skip to contentSkip to conversation

98integrity: Use /etc/ima/ima-policy as file location for IMA policy

PATCH In review Stefan Berger 3 participants 3 messages Nov 30, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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
index 85cd3b9..35cfbcc 100755
@@ -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
#2 lore raw
In reply to a message not in the archive
Quoted 22 lines · Stefan Berger

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 +3 -0
index 85cd3b9..35cfbcc 100755
@@ -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?