Skip to contentSkip to conversation

relabelling processes

DISCUSSION Andrew Reisse 2 participants 2 messages Nov 17, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

For the SEdarwin project, we need a process to change its label during execution, because it acts as both a system service and a user session manager. (Apple does not release the source). Is there a security risk in allowing this for other processes as well, performing the relabelfrom/ relabelto checks as with file relabelling? If so, we will probably need to introduce a new permission so that the window server can change its label, but no user process can.

--
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 7 lines · Andrew Reisse

For the SEdarwin project, we need a process to change its label during execution, because it acts as both a system service and a user session manager. (Apple does not release the source). Is there a security risk in allowing this for other processes as well, performing the relabelfrom/ relabelto checks as with file relabelling? If so, we will probably need to introduce a new permission so that the window server can change its label, but no user process can.

I think that this is noted in the early SELinux documentation, and has come up a few times before on the list. Limiting label transitions to execve allows the inheritance of state and the initialization of the process in the new label to be controlled. setuid(2)-like label transitions lack such controls and enforce no real separation between the two labels. Introducing such an operation will create an internal inconsistency in your security model, with domain transitions sometimes being subjected to one set of controls and behaviors and sometimes to another.

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.