mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-04 16:10:05 +00:00
Current meta-selinux provides a populate-volatile.sh for adding restorecon lines to the oe-core script. If other meta layers would add a new populate-volatile.sh, it will override the oe-core and meta-selinux ones and cause selinux issues. So append restorecon lines to the original script instead of a final script. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
9 lines
190 B
Plaintext
9 lines
190 B
Plaintext
PR .= ".2"
|
|
|
|
do_install_append () {
|
|
cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
|
|
touch /var/log/lastlog
|
|
test ! -x /sbin/restorecon || /sbin/restorecon -R /var/volatile/
|
|
EOF
|
|
}
|