Important fix for init.te
I have finally discovered why my servers are crashing on reboot! It seems that the lockd kernel thread for NFS which runs as init_t (for some reason - I don't know why) needs to create a UDP socket when it's being shut down. If it fails to create the socket then it crashes, and the result can include file system corruption, files with incorrect SE Linux type labels, etc.
To fix this I added the following to the end of init.te. I suggest that it be added to the CVS as a priority.
# to allow lockd (kernel thread) to shutdown without kernel panic allow init_t self:udp_socket create_socket_perms;
This is probably not the best solution however, the kernel thread probably should not run as init_t. But until I work out how to fix this giving UDP access to init_t is necessary.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.