All of lore.kernel.org
 help / color / mirror / Atom feed
* Making new roles
@ 2011-07-12 10:55 Julian Onions
  2011-07-12 14:08 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Julian Onions @ 2011-07-12 10:55 UTC (permalink / raw)
  To: selinux@tycho.nsa.gov

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

What do I need to add a new role such that I can change to it with newrole?

I can't seem to find any rules that allow it to work. This is for a monolithic policy we developed based from the reference policy on redhat 5.2

I have the following
I want to change from root:sysadm_r:sysadm_t:s0 to this one root:mynewrole_r:mynewrole_t:s0
I have the following rules (amongst lots of others!)

type mynewrole_t;
role sysadm_r, mynewrole_r;
allow sysadm_r mynewrole_r;
role mynewrole_r types mynewtype_t;
user root roles { sysadm_r secadm_r auditadm_r  mynewrole_r } level s0 range s0 - s0:c0.c255;

I also have an entry in default_type that picks the right combination.
I get the error reported that it is not a valid context.
This is true even with enforcing disabled.
# newrole -r mynewrole_r
root:mynewrole_r:mynewrole_t:s0 is not a valid context.

Wondering what I'm missing to define a new role? Any ideas?

Thanks
Julian.


[-- Attachment #2: Type: text/html, Size: 3363 bytes --]

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

end of thread, other threads:[~2011-07-12 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-12 10:55 Making new roles Julian Onions
2011-07-12 14:08 ` Stephen Smalley

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.