about type_change and type_transition
is it correct to argue thattype_transition program the security server to provide a cetain SID (or better, a labelling decision) for labelling process and objects created by legacy applications type_change does the same thing but for security aware applications
?
It looks like the difference between auto and exec specification in DTE.
thanks
--
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 5 lines · Giorgio Zanin
is it correct to argue that
type_transitionprogram the security server to provide a cetain SID (or better, a labelling decision) for labelling process and objects created by legacy applicationstype_changedoes the same thing but for security aware applications
No. You are correct that type_transition defines a default labeling behavior for the case where an application uses the ordinary API call (e.g. execve, open, mkdir, etc). Note that type_transition does NOT authorize anything; you need to authorize the transition via appropriate allow rules, and you'll see macros in the example policy that provide common combinations of type_transition and allow rules, e.g. domain_auto_trans, file_type_auto_trans. type_change has a different purpose; it defines a relabeling behavior for situations where a security-aware application needs to relabel an object based on the security context of a user process and the existing context of the object, e.g. when login, newrole, or sshd relabels the tty for the user shell.
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.