sysadm_r role

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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@pryber ~]# id -Z
root:system_r:unconfined_t
[root@pryber ~]# grep ^role
/etc/selinux/targeted/src/policy/policy.conf | cut -f2 "-d " | sort -u
sysadm_r
system_r
user_r
[root@pryber ~]# newrole -r sysadm_r
Couldn't get default type.
[root@pryber ~]# newrole -r sysadm_r -t sysadm_t
Authenticating root.
Password:
[root@pryber ~]# id -Z
root:sysadm_r:unconfined_t


-- 


Thanks in advance

Regards
Preeti Malakar
MTech CSE 
IIT Guwahati

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux