From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Eamon Walsh <ewalsh@tycho.nsa.gov>,
Daniel J Walsh <dwalsh@redhat.com>,
Colin Walters <walters@verbum.org>,
selinux@tycho.nsa.gov, James Morris <jmorris@namei.org>,
Eric Paris <eparis@parisplace.org>
Subject: Re: libselinux behavior in permissive mode wrt invalid domains
Date: Tue, 21 Apr 2009 16:32:25 -0400 [thread overview]
Message-ID: <49EE2D59.3080403@manicmethod.com> (raw)
In-Reply-To: <1239973084.15304.17.camel@localhost.localdomain>
Stephen Smalley wrote:
> On Thu, 2009-04-16 at 20:47 -0400, Eamon Walsh wrote:
>> Stephen Smalley wrote:
<snip>
>
> No, I don't want to change the behavior upon context_to_sid calls in
> general, as we otherwise lose all context validity checking in
> permissive mode.
>
> I think I'd rather change compute_sid behavior to preclude the situation
> from arising in the first place, possibly altering the behavior in
> permissive mode upon an invalid context to fall back on the ssid
> (process) or the tsid (object). But I'm not entirely convinced any
> change is required here.
>
I just want to follow up to make sure we are all on the same page here. Was the
suggestion to change avc_has_perm in libselinux or context_to_sid in the kernel
or leave the code as is and fix the callers of avc_has_perm to correctly handle
error codes?
I prefer the last approach because of Eamon's explanation, EINVAL is already
passed in errno to specify the context was invalid (and if object managers
aren't handling that correctly now there is a good chance they aren't handling
the ENOMEM case either).
--
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:[~2009-04-21 20:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 18:42 libselinux behavior in permissive mode wrt invalid domains Colin Walters
2009-04-15 12:15 ` Daniel J Walsh
2009-04-15 13:03 ` Stephen Smalley
2009-04-17 0:47 ` Eamon Walsh
2009-04-17 12:58 ` Stephen Smalley
2009-04-21 20:32 ` Joshua Brindle [this message]
2009-04-21 20:41 ` Stephen Smalley
2009-04-21 23:11 ` Eamon Walsh
2009-04-22 15:19 ` Colin Walters
2009-04-15 12:16 ` Stephen Smalley
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=49EE2D59.3080403@manicmethod.com \
--to=method@manicmethod.com \
--cc=dwalsh@redhat.com \
--cc=eparis@parisplace.org \
--cc=ewalsh@tycho.nsa.gov \
--cc=jmorris@namei.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=walters@verbum.org \
/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.