Skip to contentSkip to conversation

mls.patch

refpolicy Daniel J Walsh 4 participants 9 messages Sep 25, 2008 – Oct 6, 2008

lore
Share & tools
lore
#0 lore raw

-----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? -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjb3FEACgkQrlYvE4MpobN1xACgvaEBGk/voTESvAuYqyO2s+5g DWYAoObTfnusOs+FcaJIc7PeZQl9W/KR
=y3BJ
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 8 lines · Daniel J Walsh

-----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

#2 lore raw
Quoted 13 lines · Joe Nall
Quoted 9 lines · Daniel J Walsh

-----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?

Quoted 8 lines

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.

modules/services/xserver.if +6 -0
Index: policy/modules/services/xserver.if
===================================================================
@@ -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)
Signature · 2 lines
Eamon Walsh <[email protected]>
National Security Agency
#3 lore raw
Quoted 19 lines · Eamon Walsh
Quoted 18 lines · Joe Nall
Quoted 9 lines · Daniel J Walsh

-----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.

Quoted 7 lines
Quoted 3 lines

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.

Merged.

Quoted 26 lines

Index: policy/modules/services/xserver.if
===================================================================

modules/services/xserver.if +6 -0
@@ -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)
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#5 lore raw
Quoted 9 lines · Christopher J. PeBenito
Quoted 5 lines · Daniel J Walsh

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?

This has a problem: It makes the xserver module required in the base module.

Due to the use of rootwindow_type?

Should a new attribute be added to mls.te and used here?

joe

#6 lore raw
Quoted 8 lines · Joe Nall
Quoted 7 lines · Christopher J. PeBenito
Quoted 5 lines · Daniel J Walsh

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?

Quoted 6 lines
Quoted 2 lines

This has a problem: It makes the xserver module required in the base module.

Due to the use of rootwindow_type?

Should a new attribute be added to mls.te and used here?

I would make a mlsrootwindow attribute and apply it to types in the same places that rootwindow_type are used, rather than trying to just have one attribute.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#8 lore raw
Quoted 11 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh

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?

This has a problem: It makes the xserver module required in the base module.

Should this constraint be moved to xserver.te then?

Unfortunately that won't work as constraints don't work in modules.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150