From: ewalsh@tycho.nsa.gov (Eamon Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] mls.patch
Date: Fri, 26 Sep 2008 11:26:58 -0400 [thread overview]
Message-ID: <48DCFF42.6020407@tycho.nsa.gov> (raw)
In-Reply-To: <74E521B7-FA12-4326-9D7C-43B0BC0FCD02@nall.com>
Joe Nall wrote:
> On Sep 25, 2008, at 1:45 PM, Daniel J Walsh wrote:
>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> http://people.fedoraproject.org/~dwalsh/SELinux/F10/mls.patch
>>
>> Joe this is the patch I have off of current reference policy. Is
>> this
>> correct or should I use reference policy mls?
>>
>
> It was my transcription of Eamon's verbal how-to and it works so far.
> It may not be the final word on the topic as we are just starting to
> test X in mls enforcing. Eamon might be able to loosen it up some
> safely.
>
> joe
>
>
Also, here is a combined version of the range transition patches I sent
earlier. These were in response to the socket level and root window
level issued raised by Ted.
Index: policy/modules/services/xserver.if
===================================================================
--- policy/modules/services/xserver.if (revision 2819)
+++ policy/modules/services/xserver.if (working copy)
@@ -77,6 +77,9 @@
files_tmp_filetrans($1_xserver_t, $1_xserver_tmp_t, { file dir sock_file })
filetrans_pattern($1_xserver_t, xdm_xserver_tmp_t, $1_xserver_tmp_t, sock_file)
+ ifdef(`enable_mls',`
+ range_transition $1_xserver_t $1_xserver_tmp_t:sock_file s0 - mls_systemhigh;
+ ')
manage_dirs_pattern($1_xserver_t, $1_xserver_tmpfs_t, $1_xserver_tmpfs_t)
manage_files_pattern($1_xserver_t, $1_xserver_tmpfs_t, $1_xserver_tmpfs_t)
@@ -95,6 +98,9 @@
# Labeling rules for default windows and colormaps
type_transition $1_xserver_t $1_xserver_t:{ x_drawable x_colormap } $1_rootwindow_t;
+ ifdef(`enable_mls',`
+ range_transition $1_xserver_t $1_rootwindow_t:x_drawable s0 - mls_systemhigh;
+ ')
kernel_read_system_state($1_xserver_t)
kernel_read_device_sysctls($1_xserver_t)
--
Eamon Walsh <ewalsh@tycho.nsa.gov>
National Security Agency
next prev parent reply other threads:[~2008-09-26 15:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 18:45 [refpolicy] mls.patch Daniel J Walsh
2008-09-26 0:45 ` Joe Nall
2008-09-26 15:26 ` Eamon Walsh [this message]
2008-10-06 17:31 ` Christopher J. PeBenito
2008-10-06 15:07 ` Christopher J. PeBenito
2008-10-06 15:19 ` Joe Nall
2008-10-06 18:12 ` Christopher J. PeBenito
2008-10-06 17:32 ` Daniel J Walsh
2008-10-06 18:08 ` 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=48DCFF42.6020407@tycho.nsa.gov \
--to=ewalsh@tycho.nsa.gov \
--cc=refpolicy@oss.tresys.com \
/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.