From: Michael C Thompson <thompsmc@us.ibm.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: MLS + MCS?
Date: Thu, 02 Nov 2006 09:48:29 -0600 [thread overview]
Message-ID: <454A134D.5060902@us.ibm.com> (raw)
While writing some policy, I came across a situation that was causing
the policy I was writing to be constructed in an invalid fashion. What
was happening was this:
Using an old Makefile, my $(TYPE) was being generated as
'strict-mls-mcs', which was causing the support template 'gen_context'
to get completely confused.
The macro is defined thusly:
########################################
#
# gen_context(context,mls_sensitivity,[mcs_categories])
#
define(`gen_context',`$1`'ifdef(`enable_mls',`:$2')`'ifdef(`enable_mcs',`:s0`'ifelse(`$3',,,`:$3')')')dnl
I'm wondering, how does this make sense? I'm unclear as to how having
both mls_sensitivity and [mcs_catergories] defined in this way has meaning.
Because of having both '-mls' and '-mcs' in my $(TYPE), the invalid
policy I was compiling ended up looking like this:
user:role:type:$2:s0:$3
It would seem to me that MLS and MCS are mutually exclusive, at least in
this macro.
Thanks,
Mike
--
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 reply other threads:[~2006-11-02 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-02 15:48 Michael C Thompson [this message]
2006-11-02 16:35 ` MLS + MCS? Christopher J. PeBenito
2006-11-02 16:49 ` Michael C Thompson
2006-11-02 18:58 ` Christopher J. PeBenito
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=454A134D.5060902@us.ibm.com \
--to=thompsmc@us.ibm.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.