diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-09-23 21:18:02 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-10-02 13:24:44 -0400 |
commit | c1dc2858007322d99e3f2d646fbe0b1c6d7699b5 (patch) | |
tree | e2e57e098f8cec2031d27dff52f3069dcced3d10 /recipes-security/audit | |
parent | 1f548372c5d8d5ada2ccfa7ac8c922257e25c24e (diff) | |
download | meta-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-x | recipes-security/audit/audit-2.2.1/auditd | 2 | ||||
-rw-r--r-- | recipes-security/audit/audit_2.2.1.bb | 2 |
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 | ||
87 | if [ ! -e /var/log/audit ]; then | 87 | if [ ! -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 |
90 | fi | 90 | fi |
91 | 91 | ||
92 | case "$1" in | 92 | case "$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 \ | |||
4 | in the Linux kernel." | 4 | in the Linux kernel." |
5 | HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" | 5 | HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" |
6 | SECTION = "base" | 6 | SECTION = "base" |
7 | PR = "r7" | 7 | PR = "r8" |
8 | LICENSE = "GPLv2+ & LGPLv2+" | 8 | LICENSE = "GPLv2+ & LGPLv2+" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
10 | 10 | ||