From: KaiGai Kohei <kaigai@ak.jp.nec.com>
To: michel m <michel.mcgregor@gmail.com>
Cc: selinux <selinux@tycho.nsa.gov>
Subject: Re: bounds domain
Date: Mon, 19 Oct 2009 14:25:06 +0900 [thread overview]
Message-ID: <4ADBF832.8070001@ak.jp.nec.com> (raw)
In-Reply-To: <bb74313d0910170111r1fd7f59cl3556e59be1d2f7a8@mail.gmail.com>
michel m wrote:
> hi,
>
> as I was studying on how to assign different security context on
> threads defined in a process, I found that there is a concept named
> BOUNDS DOMAIN which does this for me.
> now I would like to know for implementing a userspace object manager
> that uses this mechanism for its threads, how requests for OS
> resources are protected. that is, if my single OS process changes its
> security context per thread request or I should consult AVC before any
> action taken by my threads if that action is legal.
I seems to me you are confusing about different two concepts.
The one is bounds-domain, the other is userspace object manager.
Once a thread changes its domain to the bounded one, its privileges
are more restrictive than the original domain. Then, SELinux checks
the given actions based on the restricted privileges.
> I should consult AVC before any
> action taken by my threads if that action is legal.
It goes against to the assumption of SELinux.
How do you make sure the checks are well comprehensive?
Since it is near to impossible to check and eliminate any bugs in
userspace, so we check violated accesses in kernel space.
As long as your application does not manage shared objects in userspace,
you don't need to consult userspace AVC before actions.
> is there any documentation on this topic?
You can set a new domain on the thread using setcon(3) API.
The only difference from dynamic domain transition is that
the newer domain has to be bounded by the older domain.
Thanks,
--
OSS Platform Development Division, 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.
next prev parent reply other threads:[~2009-10-19 5:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 8:11 bounds domain michel m
2009-10-19 5:25 ` KaiGai Kohei [this message]
2009-10-19 9:51 ` michel m
2009-10-19 13:57 ` Stephen Smalley
2009-10-20 16:25 ` michel m
2009-10-20 16:56 ` 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=4ADBF832.8070001@ak.jp.nec.com \
--to=kaigai@ak.jp.nec.com \
--cc=michel.mcgregor@gmail.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.