All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: I am attempting to add a secadm_r
Date: Thu, 07 Apr 2005 15:25:39 -0400	[thread overview]
Message-ID: <42558933.7050605@redhat.com> (raw)
In-Reply-To: <1112893854.27110.66.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:

>On Thu, 2005-04-07 at 12:54 -0400, Stephen Smalley wrote:
>  
>
>>Normally, to add a new user role, you would add the following lines to
>>domains/user.te:
>>	full_user_role(secadm)
>>This will define both a secadm_r role and a secadm_t domain, along with
>>associated types.  Then you can replace role and domain transitions for
>>sysadm with corresponding ones in the specific program domains like
>>checkpolicy, load_policy, setfiles, restorecon, etc so that secadm can
>>enter those domains but sysadm cannot.
>>    
>>
>
>Note that this will mean that you want to add a "secadm_r:secadm_t" line
>to the default_type file.   Then, if you add role_type_tty_change rules
>from whatever starting role you use for the user, then you should be
>able to newrole -r secadm_r to get to secadm_r:secadm_t.  Defining a new
>role without defining a new initial domain is pointless; you haven't
>achieved any real separation.
>
>  
>
Ok, this is the point I was trying to understand.  I was hoping I could 
define a role without defining
an initial type.  I was hoping for secadm_r:sysadm_t or 
secadm_r:staff_t.  Forcing a new initial type,
seems a little touch.  This causes the creation of new roles to be more 
difficult. 

I would have thought you could define a staff_t and then depending on 
which roles they were currently
under, which domains they could reach.

So staff_r:staff_t can not add users.
But useradd_r:staff_t can.

I would want to eliminate the su transition to sysadm_r:sysadm_t and 
force say a staff user to
newrole -r secadm_r

and become secadm_r:staff_t and then su and be able to do the 
checkpolicy/load_policy type stuff.

If I do full_user_role I get alot more privs then I necessarily want.

Dan

-- 



--
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:[~2005-04-07 19:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07 15:38 I am attempting to add a secadm_r Daniel J Walsh
2005-04-07 16:46 ` Luke Kenneth Casson Leighton
2005-04-07 17:00   ` Stephen Smalley
2005-04-07 17:45     ` Luke Kenneth Casson Leighton
2005-04-07 17:39       ` Stephen Smalley
2005-04-07 18:33         ` Luke Kenneth Casson Leighton
2005-04-19  4:43       ` Russell Coker
2005-04-07 16:54 ` Stephen Smalley
2005-04-07 16:55   ` Stephen Smalley
2005-04-07 17:10   ` Stephen Smalley
2005-04-07 19:25     ` Daniel J Walsh [this message]
2005-04-07 19:37       ` Stephen Smalley
2005-04-19  4:32       ` Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2005-04-08  0:50 Chad Hanson

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=42558933.7050605@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --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.