[yocto] No SELinux security context (/etc/crontab)

Oriya, Raxesh Raxeshkumar.Oriya at ncr.com
Thu Oct 10 03:06:07 PDT 2019


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 at 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 at panther2:~# ls -lZ /etc/crontab
    -rw-------. 1 root root system_u:object_r:unconfined_t:s0 653 Oct  9  2019 /etc/crontab

    root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191010/3c8aa1f2/attachment-0001.html>


More information about the yocto mailing list