From: Colin Walters <walters@verbum.org>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: review of a dbus-selinux patch
Date: Thu, 07 Nov 2013 14:57:30 -0500 [thread overview]
Message-ID: <1383854250.23834.146.camel@localhost> (raw)
In-Reply-To: <5277D42D.6050609@tycho.nsa.gov>
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
On Mon, 2013-11-04 at 12:06 -0500, Stephen Smalley wrote:
> XSELinux correctly uses selinux_set_mapping() so that libselinux
> internally creates a mapping from arbitrary class/perm indices used by
> XSELinux and the policy values and handles all of the translation at
> runtime on avc_has_perm() calls.
Ok, I see how this works now. It was not obvious at all to me initially
that the order of the #defines in XSELinux had to correspond to the
security_class_mapping struct array.
But then I only discovered while writing a patch to document
selinux_set_mapping() that there are man pages now for the libselinux
API, and I guess the docs in the headers are not really used anymore?
Anyways I attached the patch...maybe it'll be useful.
[-- Attachment #2: 0001-selinux_set_mapping-Document-it.patch --]
[-- Type: text/x-patch, Size: 0 bytes --]
next prev parent reply other threads:[~2013-11-07 19:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 15:26 review of a dbus-selinux patch Colin Walters
2013-11-04 17:06 ` Stephen Smalley
2013-11-07 19:57 ` Colin Walters [this message]
2013-11-07 20:44 ` 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=1383854250.23834.146.camel@localhost \
--to=walters@verbum.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.