All of lore.kernel.org
 help / color / mirror / Atom feed
* new user types
@ 2008-02-07 23:14 Jeremiah Jahn
  2008-02-08 13:34 ` Daniel J Walsh
  2008-02-08 13:59 ` Stephen Smalley
  0 siblings, 2 replies; 6+ messages in thread
From: Jeremiah Jahn @ 2008-02-07 23:14 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]

I can't seem to login as the right user, and I'm not sure what I missed.

I added the following roles and users to my monetra.te file:


#admin roles
role monetra_admin_r types monetra_t;
role monetra_admin_r types monetra_lib_t;

#client roles
role monetra_client_r types monetra_t;
role monetra_client_r types monetra_lib_t;
role monetra_client_r types monetra_client_t;

#monetra users
user monetra_u roles { monetra_client_r monetra_admin_r } level s0 range s0 - s0;




I ran the add login command:
semanage login -a -s monetra_u bob



I get the following output:
[root@xxx ~]# semanage login -l

Login Name                SELinux User              MLS/MCS Range            

__default__               user_u                    s0                       
root                      root                      s0-s0:c0.c255            
system_u                  system_u                  s0-s0:c0.c255            
bob                      monetra_u                 s0                       

[root@xxx ~]# semanage user -l

                Labeling   MLS/       MLS/                          
SELinux User    Prefix     MCS Level  MCS Range                      SELinux Roles


monetra_u       user       s0         s0                             monetra_admin_r monetra_client_r
root            sysadm     s0         s0-s0:c0.c255                  sysadm_r staff_r
staff_u         staff      s0         s0-s0:c0.c255                  sysadm_r staff_r
sysadm_u        sysadm     s0         s0-s0:c0.c255                  sysadm_r
system_u        user       s0         s0-s0:c0.c255                  system_r
unconfined_u    unconfined s0         s0-s0:c0.c255                  unconfined_r
user_u          user       s0         s0                             user_r

yet when I login I get:
[bob@xxx ~]$ id -Z
system_u:system_r:unconfined_t:s0-s0:c0.c255


thanx for any help you can give.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-08 20:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 23:14 new user types Jeremiah Jahn
2008-02-08 13:34 ` Daniel J Walsh
2008-02-08 13:59 ` Stephen Smalley
2008-02-08 18:13   ` Jeremiah Jahn
2008-02-08 19:13     ` Stephen Smalley
2008-02-08 20:12       ` Jeremiah Jahn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.