From: James Morris <jmorris@namei.org>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, Eric Paris <eparis@parisplace.org>,
Daniel J Walsh <dwalsh@redhat.com>
Subject: Re: [PATCH v4] selinux: support deferred mapping of contexts
Date: Wed, 7 May 2008 23:45:16 +1000 (EST) [thread overview]
Message-ID: <Xine.LNX.4.64.0805072342570.15234@us.intercode.com.au> (raw)
In-Reply-To: <1210164325.6434.22.camel@moss-spartans.epoch.ncsc.mil>
On Wed, 7 May 2008, Stephen Smalley wrote:
> So the next question is whether there are any other cases where we want
> to use this variant interface. For example, if
> selinux_inode_getsecurity() were to use this variant interface, then we
> would report the original context string to userspace upon getxattr()
> rather than the unlabeled context, and thus in my example sequence, the
> ls -Z would always show the system_u:object_r:foo_exec_t label on the
> bar file regardless of whether it was defined in the policy.
I wonder if it makes sense to only show the external labels if the process
has CAP_MAC_ADMIN ?
> I assume we do NOT want to use this variant interface when getting
> contexts to display in audit messages, as we want the audit messages to
> correspond to the actual denial and to yield proper policy if turned
> into an allow rule.
Correct.
> Likewise, are there any other cases where we want to use the reverse
> interface (security_context_to_sid_force) beyond just setxattr and
> fscreate to permit userspace to set undefined contexts on anything else?
Not that I can think of.
--
James Morris
<jmorris@namei.org>
--
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.
next prev parent reply other threads:[~2008-05-07 13:45 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 15:43 [PATCH v3] selinux: support deferred mapping of contexts Stephen Smalley
2008-05-05 17:49 ` Stephen Smalley
2008-05-05 23:31 ` James Morris
2008-05-06 15:40 ` [PATCH v4] " Stephen Smalley
2008-05-06 20:17 ` Stephen Smalley
2008-05-06 22:31 ` James Morris
2008-05-07 12:45 ` Stephen Smalley
2008-05-07 13:45 ` James Morris [this message]
2008-05-07 15:12 ` Stephen Smalley
2008-05-07 17:03 ` [PATCH v5] " Stephen Smalley
2008-05-07 17:14 ` Stephen Smalley
2008-05-08 0:08 ` James Morris
2008-05-07 15:17 ` [PATCH v4] " Eric Paris
2008-05-07 15:23 ` Stephen Smalley
2008-05-07 15:29 ` Eric Paris
2008-05-07 15:29 ` Eric Paris
2008-05-07 16:48 ` Steve Grubb
2008-05-07 16:48 ` Steve Grubb
2008-05-07 17:20 ` Stephen Smalley
2008-05-07 17:20 ` Stephen Smalley
2008-05-07 18:45 ` Steve Grubb
2008-05-07 18:45 ` Steve Grubb
2008-05-08 15:10 ` Stephen Smalley
2008-05-08 15:10 ` Stephen Smalley
2008-05-07 17:04 ` Daniel J Walsh
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=Xine.LNX.4.64.0805072342570.15234@us.intercode.com.au \
--to=jmorris@namei.org \
--cc=dwalsh@redhat.com \
--cc=eparis@parisplace.org \
--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.