Skip to contentSkip to conversation

RBAC in RHEL5

DISCUSSION Takesi satoh 1 participant 1 message Mar 31, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 21 lines · Takesi satoh
Quoted 21 lines

I wonder that I can use RBAC in RHEL5 or not.
Here is my problem.

I created new user, and new roles. Let me say john_u: john_r:john_t. After I made loadable module, loaded it, and I added some entry to default_context and default_type,
john_u:john_r:john_t was assigned to linux user "john" when john logined from GNOME.

Next, since I wanted to try the case of "john logins from console", I added new entry "system_r:local_login_t john_r:john_t system_r:unconfined_t" to default_context
and jonh logins from console(tty), then system_r:unconfined_t was assigned to john.

I thought the reason why it happened was the below policy "type_transition local_login_t shell_exec_t:process transition", so I downloaded RHEL's selinux-policy-targeted.src.rpm, replaced from above type_transition sentence to "allow local_login_t userdomain:process transition;" in local_login.te, and rebuilded rpm.

Quoted 4 lines
Quoted 4 lines

Then, john logined from console again, and john was assigned to "local_login_t"
Any domain transition did not happen here.
I wondered " What if I use strict policy? ", so I tried strict

policy.

Quoted 4 lines
Quoted 1 line

But the result is same, john was assined to local_login_t.

How did you create your user role? Did you just declare the types and roles, or did you use the policy templates?

I declared just types, roles, and some attribute such as process_user_target and process_uncond_exempt
to follow constraints.
Anyway, I updated pam and pam-devel rpms, then I can assign new role to linux user!
Thank you for your reply.

Quoted 4 lines
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150

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

Save on Cell Phones. Click Now!
<http://tagline.bidsystem.com/fc/Ioyw36XI3zg0r88Ufuze522CunQ0TLsvGsoe3NR
nZgqp0aLqdGuBwL/>

<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the FREE email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>