Skip to contentSkip to conversation

important patch for init.te

PATCH Russell Coker 2 participants 2 messages Apr 13, 2003 – Apr 22, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

It seems that /sbin/init really wants to talk to itself via fifo's. If it can't do so then something that a libc6 package upgrade on Debian does will trigger init into going into boot mode (after which it doesn't reap zombies and generally your system doesn't work properly).

While I still haven't tracked down the cause of this, and it's only been shown to be a real problem when doing libc6 upgrades at the moment (which is only possible on Debian), it still needs to be changed as a priority.

I have just killed several machines in the process of upgrading them before I tracked this one down (if you tell dselect to upgrade 30+ packages and walk away while it's doing so then by the time you get back the evidence of where the problem originated will be obscured).

domains/program/init.te 2003-04-13 18:04:43.000000000 +1000 renamed from domains/program/init.te 2003-04-04 08:50:17.000000000 +1000 +2 -1
@@ -62,6 +62,7 @@
 # Create unix sockets
 allow init_t self:unix_dgram_socket create_socket_perms;
 allow init_t self:unix_stream_socket create_socket_perms;
+allow init_t self:fifo_file rw_file_perms;
 
 # Permissions required for system startup
 allow init_t bin_t:dir { read getattr lock search ioctl };
@@ -75,7 +76,7 @@
 
 # Modify utmp.
 allow init_t var_run_t:file rw_file_perms;
-allow init_t initrc_var_run_t:file rw_file_perms;
+allow init_t initrc_var_run_t:file { setattr rw_file_perms };
 
 # For /var/run/shutdown.pid.
 type init_var_run_t, file_type, sysadmfile, pidfile;
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.
#1 lore raw
Quoted 5 lines · Russell Coker

It seems that /sbin/init really wants to talk to itself via fifo's. If it can't do so then something that a libc6 package upgrade on Debian does will trigger init into going into boot mode (after which it doesn't reap zombies and generally your system doesn't work properly).

Quoted 8 lines

While I still haven't tracked down the cause of this, and it's only been shown to be a real problem when doing libc6 upgrades at the moment (which is only possible on Debian), it still needs to be changed as a priority.

I have just killed several machines in the process of upgrading them before I tracked this one down (if you tell dselect to upgrade 30+ packages and walk away while it's doing so then by the time you get back the evidence of where the problem originated will be obscured).

The patches for init.te, the devfsd Makefile, and portability have been merged into the sourceforge CVS tree. Thanks.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.