From: Joshua Brindle <method@gentoo.org>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov,
Thomas Bleher <bleher@informatik.uni-muenchen.de>,
Daniel J Walsh <dwalsh@redhat.com>,
selinux-dev <selinux-dev@tresys.com>,
James Morris <jmorris@redhat.com>
Subject: Re: [RFC][PATCH] selinux: introduce support for deferred mappingof inode security contexts
Date: Tue, 16 May 2006 10:02:44 -0400 [thread overview]
Message-ID: <4469DB84.1080507@gentoo.org> (raw)
In-Reply-To: <1147786883.30789.104.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Tue, 2006-05-16 at 08:50 -0400, Joshua Brindle wrote:
>
> <snip>
> IIUC, restore -C works by calling lgetxattr() on the files and comparing
> the attribute returned by it against what is in the dump. So if
> lgetxattr() returns unlabeled_t rather than the unmapped string, the
> compare will fail. Likewise for verification of a successful restore
> from a dump. IIUC, the raw read of the device only occurs when dumping
> the partition; restore itself operates via the normal system calls on
> the fs.
>
>
I'm not sure if this is the appropriate behavior. For example, restore
doesn't/can't verify that the UID/GID for the file being restored is
mapped the same as it was when the archive was created. IMHO restore's
job isn't to interpret the backup, its job is to write it out and let
the admin interpret it.
> Canonicalization would still occur for contexts that are valid; the only
> change here is in what we return to userspace (and in logs) for invalid
> contexts.
>
>
>> <snip>
>
> At present, both the avc and audit will end up displaying the unlabeled
> SID's context for all invalid contexts because that is what
> security_sid_to_context() will return. What I'm suggesting would change
> that behavior so that they both will display the unmapped string
> representation, thereby preserving the actual text label.
>
So the denial would have the unmapped context? I don't think I
understand that, it wouldn't be a denial that represents what actually
happened (not to mention the type wouldn't necessarilly be in the policy
so any attempt to audit2allow or similar will yield an
uncompilable/unlinkable policy)
--
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:[~2006-05-16 14:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 12:50 [RFC][PATCH] selinux: introduce support for deferred mappingof inode security contexts Joshua Brindle
2006-05-16 13:41 ` Stephen Smalley
2006-05-16 14:02 ` Joshua Brindle [this message]
2006-05-16 14:54 ` Stephen Smalley
-- strict thread matches above, loose matches on Subject: below --
2006-05-24 17:36 Joshua Brindle
2006-05-25 15:42 Joshua Brindle
2006-05-25 16:03 ` Stephen Smalley
2006-05-25 16:27 ` 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=4469DB84.1080507@gentoo.org \
--to=method@gentoo.org \
--cc=bleher@informatik.uni-muenchen.de \
--cc=dwalsh@redhat.com \
--cc=jmorris@redhat.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux-dev@tresys.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.