We don't need to set security context for /dev/log after syslogd daemon startup because it is already set by udev. We just need to set the correct security context for symbolic link /var/log before syslogd startup.
Signed-off-by: Yi Zhao <yi.z...@windriver.com> --- recipes-extended/sysklogd/files/sysklogd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/sysklogd/files/sysklogd b/recipes-extended/sysklogd/files/sysklogd index e49c2da..7943b1d 100644 --- a/recipes-extended/sysklogd/files/sysklogd +++ b/recipes-extended/sysklogd/files/sysklogd @@ -108,8 +108,8 @@ case "$1" in start) log_begin_msg "Starting system log daemon..." create_xconsole + test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log start-stop-daemon --start --quiet --pidfile $pidfile_syslogd --name syslogd --startas $binpath_syslogd -- $SYSLOGD - test ! -x /sbin/restorecon || /sbin/restorecon -RF /dev/log /var/log/ log_end_msg $? ;; stop) -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49900): https://lists.yoctoproject.org/g/yocto/message/49900 Mute This Topic: https://lists.yoctoproject.org/mt/75351503/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-