From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Sam Gandhi <samgandhi9@gmail.com>
Cc: <selinux@tycho.nsa.gov>
Subject: Re: /etc/selinux/$P/users/local.users and system.users are they deprecated?
Date: Thu, 16 Jun 2011 08:38:42 -0400 [thread overview]
Message-ID: <4DF9F952.9040702@tresys.com> (raw)
In-Reply-To: <BANLkTikQc7DTnOSkxMk4i7uzPTW3XbBZxA@mail.gmail.com>
On 06/15/11 16:36, Sam Gandhi wrote:
>>> In my policy definitions I am defining a new user diags_u, type
>>> diags_t and role diags_r, essentially following statements in
>>> policy.conf (through macros etc)
>>>
>>> type diags_t, domain, userdomain, unpriv_userdomain, nscd_client_domain, privfd;
>>> role diags_r types diags_t;
>>> user diags_u roles { diags_r };
>>>
>>> Is that sufficient? fwiw, I have been able to transition to
>>> diags_u:diags_r:diags_t context using the newrole command, when using
>>> policy that contains above statements.
>>
>> And it works in enforcing? I would expect it to fail if you don't have
>> a role allow:
>>
>> allow system_r diags_r;
>>
>
> I had that statement in my policy sorry I didn't include it original email.
>
> I can transition to diags_u:diags_r:diags_t context via newrole,
> although when using pam_selinux to login as user diags initial context
> that is set is diags_u:system_r:initrc_t
>
> Looks like my $P/contexts/default_context or $P/contexts/users/diag_u
> file is wrong (?)
Odd. Can you confirm that your getty is getty_t and the login program
runs in local_login_t?
If those are correct, then you should make sure you include
diags_r:diags_t on the system_r:local_login_t lines of the above two files.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
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.
prev parent reply other threads:[~2011-06-16 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 17:36 /etc/selinux/$P/users/local.users and system.users are they deprecated? Sam Gandhi
2011-06-15 13:40 ` Stephen Smalley
2011-06-15 13:48 ` Christopher J. PeBenito
2011-06-15 20:36 ` Sam Gandhi
2011-06-16 12:38 ` Christopher J. PeBenito [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=4DF9F952.9040702@tresys.com \
--to=cpebenito@tresys.com \
--cc=samgandhi9@gmail.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.