From: Paul Moore <paul.moore@hp.com>
To: Klaus Weidner <klaus@atsec.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>, Matt Anderson <mra@hp.com>,
Darrel Goeddel <dgoeddel@TrustedCS.com>,
selinux@tycho.nsa.gov
Subject: Re: context_sensitivity_{get|set}
Date: Fri, 13 Oct 2006 12:18:19 -0400 [thread overview]
Message-ID: <452FBC4B.2060703@hp.com> (raw)
In-Reply-To: <20061013154729.GI28525@w-m-p.com>
Klaus Weidner wrote:
> On Fri, Oct 13, 2006 at 10:04:07AM -0400, Stephen Smalley wrote:
>
>>On Thu, 2006-10-12 at 15:19 -0400, Matt Anderson wrote:
>>
>>>For my latest CUPS patch I needed to include code that set the
>>>sensitivity of the spool file storing the to that of the client's
>>>context when they queued the job. I used context_range_get() to
>>>retrieve the MLS range, but then had to use strtok() to get the lower bound.
>>>
>>>Is context_sensitivity_get() or context_sensitivity_set() a function
>>>that other consumers might need? Should it be included in libselinux?
>>
>>Providing functions to get/set the low and high would make sense (and
>>newrole already has to do similar processing internally for newrole -l),
>>but I don't follow the function names above - do you want just the low
>>sensitivity (i.e. no categories) or the entire low level? And you need
>>to indicate whether you are operating on the low or the high levels in
>>the interface.
>
> The terminology is confusing, and it doesn't help that the LSPP document
> combines the terms in creative ways. It uses "sensitivity label" and
> "security level" to refer to the full set, and generally includes the
> term "hierarchical" when referring to the non-category part only.
>
> My preference would be to have separate functions for the high level,
> maybe including "clearance" in the name, since that's generally
> appropriate for subjects only. I'd consider it a bug to assign level
> ranges to objects - they should have either a single level or be a
> trusted object. I think the symmetry in the current implementation is a
> bit of a distraction...
>
> How about context_mlslevel_get/set() for objects and the effective level
> of subjects, and context_mlsclearance_get/set() for the high level of
> subjects? (I'm not saying it needs to actually enforce the
> subject/object distinction, people can use the clearance function to set
> the high level of objects if they insist.)
I agree with Klaus about the "high" portion of the MLS label really being more
of a clearance and the "low" portion being the effective. However, since these
new library functions would operate strictly on a context and not on the object
itself I wonder it we would be better served by sticking with the more abstract
names of context_mlslow_{get,set}() and context_mlshigh_{get,set}()?
--
paul moore
linux security @ hp
--
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-10-13 16:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 19:19 context_sensitivity_{get|set} Matt Anderson
2006-10-13 14:04 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 15:47 ` context_sensitivity_{get|set} Klaus Weidner
2006-10-13 16:18 ` Paul Moore [this message]
2006-10-13 16:26 ` context_sensitivity_{get|set} Paul Moore
2006-10-13 17:24 ` context_sensitivity_{get|set} Klaus Weidner
2006-10-13 16:32 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 16:21 ` context_sensitivity_{get|set} Matt Anderson
2006-10-13 16:40 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 20:36 ` context_sensitivity_{get|set} Linda Knippers
2006-10-13 20:54 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 16:58 ` context_sensitivity_{get|set} Casey Schaufler
2006-10-13 18:47 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 19:43 ` context_sensitivity_{get|set} Casey Schaufler
2006-10-13 20:03 ` context_sensitivity_{get|set} Stephen Smalley
2006-10-13 21:38 ` context_sensitivity_{get|set} Casey Schaufler
2006-10-13 22:06 ` context_sensitivity_{get|set} Joe Nall
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=452FBC4B.2060703@hp.com \
--to=paul.moore@hp.com \
--cc=dgoeddel@TrustedCS.com \
--cc=klaus@atsec.com \
--cc=mra@hp.com \
--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.