All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Julian Onions <Julian.Onions@nexor.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Making new roles
Date: Tue, 12 Jul 2011 10:08:36 -0400	[thread overview]
Message-ID: <1310479716.309.5.camel@moss-pluto> (raw)
In-Reply-To: <0DF1039D1D45FA49BE6F493398D45F31119F600077@IE2RD2XVS231.red002.local>

On Tue, 2011-07-12 at 03:55 -0700, Julian Onions wrote:
> What do I need to add a new role such that I can change to it with
> newrole?

See
http://selinuxproject.org/page/RefpolicyBasicRoleCreation

> type mynewrole_t;
<snip>
> role mynewrole_r types mynewtype_t;

Which is it supposed to be?  mynewrole_t or mynewtype_t?

> This is true even with enforcing disabled.
> 
> # newrole –r mynewrole_r
> 
> root:mynewrole_r:mynewrole_t:s0 is not a valid context.

I'd guess that this is due to not specifying:
role mynewrole_r types mynewrole_t;
in your policy (you specified mynewtype_t instead above).

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      reply	other threads:[~2011-07-12 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12 10:55 Making new roles Julian Onions
2011-07-12 14:08 ` Stephen Smalley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310479716.309.5.camel@moss-pluto \
    --to=sds@tycho.nsa.gov \
    --cc=Julian.Onions@nexor.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.