sysadm_r role

Preeti Malakar findpreeti at gmail.com
Sat Jul 16 10:09:32 UTC 2005


Sir,

      Can anyone explain the following result, why root has to change
the type along with role sysadm_r role . Why does it say "couldnt get
default type" in the first case


[root at pryber ~]# id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
context=root:system_r:unconfined_t
[root at pryber ~]# id -Z
root:system_r:unconfined_t
[root at pryber ~]# grep ^role
/etc/selinux/targeted/src/policy/policy.conf | cut -f2 "-d " | sort -u
sysadm_r
system_r
user_r
[root at pryber ~]# newrole -r sysadm_r
Couldn't get default type.
[root at pryber ~]# newrole -r sysadm_r -t sysadm_t
Authenticating root.
Password:
[root at pryber ~]# id -Z
root:sysadm_r:unconfined_t


-- 


Thanks in advance

Regards
Preeti Malakar
MTech CSE 
IIT Guwahati




More information about the selinux mailing list