Skip to contentSkip to conversation

Correct order to become sysadm_r

DISCUSSION Brad Chapman 2 participants 4 messages Aug 22, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Everyone,

What is the correct sequence of commands to change from Brad:user_r:user_t to Brad:sysadm_r:sysadm_t without incurring avc: denied errors from either the transfer itself or any actions performed within sysadm_r? I'm trying to keep a lot of things out of user_macros.te and su_macros.te, and the only way to do that IMHO is to become either Brad:sysadm_r:sysadm_t or Brad:sysadm_r:sysadm_su_t. How do I do it?

Thanks,

Brad

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
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 6 lines · Brad Chapman

What is the correct sequence of commands to change from Brad:user_r:user_t to Brad:sysadm_r:sysadm_t without incurring avc: denied errors from either the transfer itself or any actions performed within sysadm_r? I'm trying to keep a lot of things out of user_macros.te and su_macros.te, and the only way to do that IMHO is to become either Brad:sysadm_r:sysadm_t or Brad:sysadm_r:sysadm_su_t. How do I do it?

newrole -r sysadm_r

The above command is all you need on a correctly configured system.

As an aside, it's better to change to sysadm_r before running "su -" so you can access .bashrc etc.

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
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 11 lines · --- Russell Coker
Quoted 6 lines · Brad Chapman

What is the correct sequence of commands to change from Brad:user_r:user_t to Brad:sysadm_r:sysadm_t without incurring avc: denied errors from either the transfer itself or any actions performed within sysadm_r? I'm trying to keep a lot of things out of user_macros.te and su_macros.te, and the only way to do that IMHO is to become either Brad:sysadm_r:sysadm_t or Brad:sysadm_r:sysadm_su_t. How do I do it?

newrole -r sysadm_r

The above command is all you need on a correctly configured system.

Correectly configured == Your policy out of the box?

Quoted 3 lines

As an aside, it's better to change to sysadm_r before running "su -" so you can access .bashrc etc.

OK. I'll try all this after a reboot.

Brad

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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

#3 lore raw
Quoted 5 lines · Brad Chapman
Quoted 3 lines

newrole -r sysadm_r

The above command is all you need on a correctly configured system.

Correectly configured == Your policy out of the box?

My policy out of the box or the NSA policy out of the box.

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