make relabel error
Hi, while I am still using the README in selinux-usr/selinux-doc of the december release as a guide to setup selinux with a Fedora Core 1 box and a 2.6.2 kernel from kernel.org, I have experienced some problem.
At step 5) of the readme which said to do a make relabel, I encountered the following:
/usr/sbin/setfiles file_contexts/file_contexts mount | awk '/ext[23]/{print $3}'/usr/sbin/setfiles: read 600 specifications /usr/sbin/setfiles: invalid context system_u:object_r:inetd_exec_t on line number 587 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_exec_t on line number 588 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 589 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 590 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_log_t on line number 591 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 722 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 723 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 724 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 725 /usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 726 Exiting after 10 errors.
make: *** [relabel] Error 1
What have I missed? Could anyone help me on this? Your attention is greatly appreciated. Thank you.
Regards,
Keen
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi,
Quoted 8 lines · keen
system_u:object_r:inetd_child_exec_t on line number 725
/usr/sbin/setfiles: invalid context system_u:object_r:inetd_child_exec_t on line number 726 Exiting after 10 errors.
make: *** [relabel] Error 1What have I missed? Could anyone help me on this? Your attention is greatly appreciated. Thank you.
If you installed the policy rpm itself without an intervening reboot, then the policy may not actually be loaded in the kernel, and the kernel won't let you set contexts that aren't mentioned in its loaded policy. You need a "make load" before the "make relabel" to load the new policy.
Cheers,
Stephen
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.