mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
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>
9 lines
196 B
Plaintext
9 lines
196 B
Plaintext
PR .= ".3"
|
|
|
|
do_install_append () {
|
|
cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
|
|
touch /var/log/lastlog
|
|
test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /run
|
|
EOF
|
|
}
|