summaryrefslogtreecommitdiffstats
path: root/recipes-security/audit
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2013-09-23 21:18:02 +0800
committerJoe MacDonald <joe@deserted.net>2013-10-02 13:24:44 -0400
commitc1dc2858007322d99e3f2d646fbe0b1c6d7699b5 (patch)
treee2e57e098f8cec2031d27dff52f3069dcced3d10 /recipes-security/audit
parent1f548372c5d8d5ada2ccfa7ac8c922257e25c24e (diff)
downloadmeta-selinux-c1dc2858007322d99e3f2d646fbe0b1c6d7699b5.tar.gz
always force to restore file contexts in initscripts
In policycoreutils-2.13+, restorecon changes its default behaviour, and does not restore context if the file' type is correct, even its mcs/mls level is incorrect. We should force it always to restore file contexts in initscripts to avoid issues. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/audit')
-rwxr-xr-xrecipes-security/audit/audit-2.2.1/auditd2
-rw-r--r--recipes-security/audit/audit_2.2.1.bb2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-security/audit/audit-2.2.1/auditd b/recipes-security/audit/audit-2.2.1/auditd
index 48b6990..fcd96c9 100755
--- a/recipes-security/audit/audit-2.2.1/auditd
+++ b/recipes-security/audit/audit-2.2.1/auditd
@@ -86,7 +86,7 @@ do_reload() {
86 86
87if [ ! -e /var/log/audit ]; then 87if [ ! -e /var/log/audit ]; then
88 mkdir -p /var/log/audit 88 mkdir -p /var/log/audit
89 [ -x /sbin/restorecon ] && /sbin/restorecon /var/log/audit 89 [ -x /sbin/restorecon ] && /sbin/restorecon -F /var/log/audit
90fi 90fi
91 91
92case "$1" in 92case "$1" in
diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb
index e0b86e2..0bce60b 100644
--- a/recipes-security/audit/audit_2.2.1.bb
+++ b/recipes-security/audit/audit_2.2.1.bb
@@ -4,7 +4,7 @@ storing and searching the audit records generated by the audit subsystem \
4in the Linux kernel." 4in the Linux kernel."
5HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" 5HOMEPAGE = "http://people.redhat.com/sgrubb/audit/"
6SECTION = "base" 6SECTION = "base"
7PR = "r7" 7PR = "r8"
8LICENSE = "GPLv2+ & LGPLv2+" 8LICENSE = "GPLv2+ & LGPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
10 10