Skip to contentSkip to conversation

system_r and sysadm_r roles

DISCUSSION Carlos Anísio Monteiro 2 participants 5 messages Mar 8, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Helo.

I´d like to know why there is a transition permission between system_r and sysadm_r.

Example: allow system_r sysadm_r;

This would can induce the a problem of security ?

Thanks.

Signature · 10 lines
Carlos Anísio Monteiro	<[email protected]>
IPEN-CNEN/SP
São Paulo - Brasil



--
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 4 lines · Carlos Anísio Monteiro

I´d like to know why there is a transition permission between system_r and sysadm_r.

Example: allow system_r sysadm_r;

The login process (which is a system_r process) transitions to sysadm_r for administrative logins.

Quoted 1 line

This would can induce the a problem of security ?

No, domain transitions are the key.

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.
#2 lore raw
Quoted 6 lines · Stephen Smalley
Quoted 3 lines

This would can induce the a problem of security ?

No, domain transitions are the key.

Sorry, but don´t understand this. If a fail (that it provide a shell root) to occur in a system process, can´t occur a transition to sysadm_r role ?

Many thanks.

Signature · 3 lines
Carlos Anísio Monteiro	<[email protected]>
IPEN-CNEN/SP
São Paulo - Brasil
#3 lore raw
Quoted 3 lines · Carlos Anísio Monteiro

Sorry, but don´t understand this. If a fail (that it provide a shell root) to occur in a system process, can´t occur a transition to sysadm_r role ?

Not unless the domain can transition to a domain associated with sysadm_r, and the role transition meets the boolean condition specified in policy/constraints for role changes.

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.
#4 lore raw
Quoted 8 lines · Stephen Smalley
Quoted 3 lines · Carlos Anísio Monteiro

Sorry, but don´t understand this. If a fail (that it provide a shell root) to occur in a system process, can´t occur a transition to sysadm_r role ?

Not unless the domain can transition to a domain associated with sysadm_r, and the role transition meets the boolean condition specified in policy/constraints for role changes.

Oh, and it would also have to transition to a user identity authorized for sysadm_r, which would require meeting another boolean condition specified in policy/constraints for user identity changes.

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.