Hi,

I have enabled SELinux in my yocto project(warrior branch) but cron is not 
functioning because of some SELinux context isuue. I am using minimum SELinux 
policy. Here is the error from `/var/log/messages`

    Oct  9 04:50:01 panther2 cron.info crond[261]: ((null)) No SELinux security 
context (/etc/crontab)
    Oct  9 04:50:01 panther2 cron.info crond[261]: (root) FAILED (loading cron 
table)

Here are some contexts for relevant files,

    root@panther2:~# ps -efZ | grep cron
    system_u:system_r:kernel_t:s0   root       464     1  0 04:54 ?    00:00:00 
/usr/sbin/crond -n

    root@panther2:~# ls -lZ /etc/crontab
    -rw-------. 1 root root system_u:object_r:unconfined_t:s0 653 Oct  9  2019 
/etc/crontab

    root@panther2:~# ls -lZ /usr/sbin/crond
    -rwxr-xr-x. 1 root root system_u:object_r:unlabeled_t:s0 68160 Oct  9  2019 
/usr/sbin/crond

Any help? Thanks !!

Regards,
Thanks
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to