From: KaiGai Kohei <kaigai@ak.jp.nec.com>
To: jwcart2@tycho.nsa.gov
Cc: SELinux <selinux@tycho.nsa.gov>,
Steve Smalley <sds@epoch.ncsc.mil>,
James Morris <jmorris@namei.org>,
Eric Paris <eparis@parisplace.org>,
Eamon Walsh <ewalsh@tycho.nsa.gov>
Subject: Re: [patch] selinux: export initial SID contexts via selinuxfs (v2)
Date: Mon, 09 Apr 2007 12:14:16 +0900 [thread overview]
Message-ID: <4619AF88.9020801@ak.jp.nec.com> (raw)
In-Reply-To: <1175872060.25329.35.camel@moss-lions.epoch.ncsc.mil>
> I have been working on a patch to libselinux that would add the
> functions security_get_initial_context(),
> security_get_initial_context_raw() and avc_get_initial_sid() functions.
> I was just planning on passing a string, like "unlabeled", to the
> functions rather than a kernel initial SID, because I wanted to avoid
> confusion between kernel's SIDs, which are u32, and userspace SIDs,
> which are reference-counted structs.
I don't have any claim about the type of argument variables, and it seems
to me fair enough. :)
SE-PostgreSQL will be able to handle the initial SID context in either way.
> I know that SEPostgreSQL uses its object id type as the SID. If
> userspace used unsigned integers for SIDs, then only a sid_to_context
> function would be needed; it would do the right thing if the SID was in
> the range of the kernel initial SIDs.
SE-PostgreSQL will call your new API only when a security context
associated with a persistent SID is invalid, to obtain "unlabeled"
context.
It has completely separated mapping between kernel initial SIDs and
persistent SIDs of SE-PostgreSQL, so there is no reason to restrict
the type of its arguments.
Thanks,
> Do we need to revisit how userspace SIDs are managed? Are there other
> places were it would be better to have the object manager determine the
> SID, so that it can be meaningful, rather than the userspace AVC?
> What do you think Eamon?
--
Open Source Software Promotion Center, NEC
KaiGai Kohei <kaigai@ak.jp.nec.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:[~2007-04-09 3:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 14:11 [patch] selinux: export initial SID contexts via selinuxfs (v2) James Carter
2007-04-04 15:23 ` Stephen Smalley
2007-04-04 16:17 ` Eric Paris
2007-04-04 17:00 ` Stephen Smalley
2007-04-04 17:15 ` James Morris
2007-04-04 17:22 ` Eric Paris
2007-04-04 17:27 ` Stephen Smalley
2007-04-04 17:23 ` James Morris
2007-04-06 6:44 ` KaiGai Kohei
2007-04-06 15:07 ` James Carter
2007-04-09 3:14 ` KaiGai Kohei [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=4619AF88.9020801@ak.jp.nec.com \
--to=kaigai@ak.jp.nec.com \
--cc=eparis@parisplace.org \
--cc=ewalsh@tycho.nsa.gov \
--cc=jmorris@namei.org \
--cc=jwcart2@tycho.nsa.gov \
--cc=sds@epoch.ncsc.mil \
--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.