newrole not working properly

asked 2018-02-05 06:12:31 -0600

dminca gravatar image

I'm having some issues with the newrole utility (fom the package policycoreutils-newrole Fedora 27), when I'm trying to switch roles, it's not working no matter what role I choose (even tried with user_r that doesn't require any privileges whatsoever), here are some examples:

➜  ~  seinfo -r

Roles: 14
   auditadm_r
   dbadm_r
   guest_r
   logadm_r
   nx_server_r
   object_r
   secadm_r
   staff_r
   sysadm_r
   system_r
   unconfined_r
   user_r
   webadm_r
   xguest_r
➜  ~  newrole -r user_r
unconfined_u:user_r:user_t:s0-s0:c0.c1023 is not a valid context
➜  ~  newrole -r user_r:user_t
Couldn't get default type.
➜  ~  newrole -r sysadm_r     
unconfined_u:sysadm_r:sysadm_t:s0-s0:c0.c1023 is not a valid context
➜  ~  newrole -r sysadm_r:sysadm_t
Couldn't get default type.
edit retag flag offensive close merge delete