type transition
what's the difference between the following statements:
type_transition TYPE_A TYPE_B:process TYPE_C
and
allow TYPE_A TYPE_C:process transition
?
If I am not wrong the first statement forces a new process, created by TYPE_A, to belong to TYPE_C, i.e. everytime TYPE_A creates a process (with respect to TYPE_B) this process is made member of TYPE_C. The second statement allows TYPE_A to change to TYPE_C.
Does both occur upon an execve()? If so, what's the difference between them? It seems the first requires a call to fork(), while the second does not; probably I am wrong but it's the only difference I can argue. Can anyone explain how these type transitions occur (possibly everything about type transitions in SELinux....)?
Thanks
Giorgio
--
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.
Quoted 4 lines · Giorgio Zanin
what's the difference between the following statements:
type_transitionTYPE_ATYPE_B:processTYPE_C
This rule states how a process transitions. If a process is currently in
domain TYPE_A, and execs a file of type TYPE_B, then the process will transition to domain TYPE_C. However, the policy must allow this transition, hence:
Quoted 2 lines
allow
TYPE_ATYPE_C:process transition
This rule states that a process in domain TYPE_A is allowed to
transition to domain TYPE_C.
You should look at the SELinux Policy doc for more information, at
http://www.nsa.gov/selinux/policy2-abs.html
You can also refer to the original SELinux report:
http://www.nsa.gov/selinux/slinux-abs.html.
--
Wayne Salamon
[email protected]
--
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.