From: Janak Desai <janak@us.ibm.com>
To: russell@coker.com.au
Cc: Valdis.Kletnieks@vt.edu, SE-Linux <selinux@tycho.nsa.gov>,
Stephen Smalley <sds@epoch.ncsc.mil>
Subject: Re: pam_namespace
Date: Tue, 09 May 2006 10:41:53 -0400 [thread overview]
Message-ID: <4460AA31.6030805@us.ibm.com> (raw)
In-Reply-To: <200605100002.28660.russell@coker.com.au>
Russell Coker wrote:
>On Tuesday 09 May 2006 22:57, Russell Coker <russell@coker.com.au> wrote:
>
>
>>>>Having "both" and "both_no_mcs" is confusing. Maybe it would be best to
>>>>have "user" and "context" as separate items to replace "both" and then
>>>>support a fourth option as "range", "high" or "low".
>>>>
>>>>
>>>I am not sure I understand. We have "user", "context" and "both", where
>>>type in the context can be controlled through type-member policy rules
>>>and the mls range is inherited from the process. Can you give an example
>>>of what context the instance would have with "range" or "high" or "low"?
>>>
>>>
>>My idea is that the range, high, and low values would be candidates for the
>>file name.
>>
>>
>[...]
>
>
>>Probably the easiest thing to do is to default to including the entire
>>security context of the process in the directory name.
>>
>>
>
>One thing that I consider to be necessary is to allow the administrator to
>determine in which situations the PI directories should be shared. Using a
>default that has the full context including range will work, but many admins
>will want finer grained control.
>
>For example if the aim is to separate MLS ranges such that file names can not
>be used to accidentally reveal secret data then there may not be a need for
>separate Unix UIDs to have different directories, and directory names could
>be based on range alone.
>
>Another possibility is when running the strict policy a user might have
>multiple roles but not want to have a different copy of /tmp for each one.
>For example if I scp a file to the /tmp directory used for role A then after
>running newrole to change to role B I will still want to see the file in
>question (assuming of course that the policy allows access to it).
>
>Then for MCS the issue of whether it's most desirable to base instance
>directory names on the high or the low level is something that we probably
>won't ever get an agreement on.
>
>
>
Just to clarify, it is the instance security context that is important
from the
perspective of access to it. The inclusion of context in the directory
name is
just so that the admin can correctly identify them. The earlier incarnation
of the pam namespace module put an md5 hash instead of the more useful
uid+context names.
As far as the ability to control which instances to share, I assume you
can do that with the policy. The namespace module just calls
security_compute_member() to get the context of the instance.
security_compute_member() looks at process context and the
target directory context to arrive at the context for the member(instance).
So you could setup the policy such that different process contexts
return different (or the same, if so desired) contexts for the instance.
-Janak
--
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-09 14:41 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 6:23 pam_namespace Russell Coker
2006-05-05 7:50 ` pam_namespace Valdis.Kletnieks
2006-05-05 9:14 ` pam_namespace Russell Coker
2006-05-05 10:06 ` pam_namespace Valdis.Kletnieks
2006-05-07 9:28 ` pam_namespace Russell Coker
2006-05-08 1:07 ` pam_namespace Valdis.Kletnieks
2006-05-08 3:27 ` pam_namespace Russell Coker
2006-05-08 13:44 ` pam_namespace Janak Desai
2006-05-08 20:32 ` pam_namespace Valdis.Kletnieks
2006-05-09 12:57 ` pam_namespace Russell Coker
2006-05-09 14:02 ` pam_namespace Russell Coker
2006-05-09 14:41 ` Janak Desai [this message]
2006-05-09 14:13 ` pam_namespace Janak Desai
2006-05-09 22:53 ` pam_namespace Russell Coker
2006-05-10 14:10 ` pam_namespace Janak Desai
2006-05-11 0:04 ` pam_namespace Russell Coker
2006-05-11 13:28 ` pam_namespace Janak Desai
2006-05-12 4:14 ` pam_namespace Rogelio Serrano
2006-05-12 5:00 ` pam_namespace Russell Coker
2006-05-08 1:37 ` pam_namespace Russell Coker
2006-05-08 22:39 ` pam_namespace Thomas Bleher
2006-05-09 12:07 ` pam_namespace Stephen Smalley
2006-05-09 13:12 ` pam_namespace Janak Desai
2006-05-11 13:45 ` pam_namespace Rogelio Serrano
2006-05-11 13:57 ` pam_namespace Stephen Smalley
2006-05-12 4:09 ` pam_namespace Rogelio Serrano
2006-05-11 23:09 ` pam_namespace Russell Coker
2006-05-12 4:00 ` pam_namespace Rogelio Serrano
2006-05-12 4:52 ` pam_namespace Russell Coker
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=4460AA31.6030805@us.ibm.com \
--to=janak@us.ibm.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=russell@coker.com.au \
--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.