Selinux strict mode
I have just started to run selinux. When i tested the strict polict with enforcing mode i got this error.
Init: cannot execute "/etc/rc.d/rc.sysinit" init:entering runlevel: 3 Init: cannot execute "/etc/rc.d/rc" Init: id "1" respawing to fast: disabled for 5 minutes Init: id "2" respawing to fast: disabled for 5 minutes Init: id "3" respawing to fast: disabled for 5 minutes Init: id "4" respawing to fast: disabled for 5 minutes Init: id "5" respawing to fast: disabled for 5 minutes Im running centos 5.3 |
Quote:
What do you get when doing ls -Z /etc/rc.d/rc.sysinit ? There is a way to relabel your filesystem. Try a google search for it. I think that is your problem. Because you dont have access, the script exits immediately and respawns (as is configured in /etc/inittab I think). THere is a safety build in to wait if respawn is to fast. I have this for that script: -rwxr-xr-x root root system_u:object_r:initrc_exec_t /etc/rc.d/rc.sysinit |
Quote:
mine /etc/rc.d/rc.sysinit looks exactly the same. |
Quote:
What errors are the logs showing? /var/log/messages /var/log/audit/audit.log Do you know if the system relabeled after the new policy? to force a relabel 'touch /.autorelabel' then reboot or 'fixfiles relabel' to relabel a live system what is audit2why or audit2allow showing? audit2allow -d audit2allow -i < /var/log/audit/audit.log For future reference the more infomation you can provide the easier it is to help. |
All times are GMT -5. The time now is 01:56 PM. |