All of lore.kernel.org
 help / color / mirror / Atom feed
* seobject_mls.patch
@ 2008-11-07 14:44 Daniel J Walsh
  2008-11-07 15:31 ` seobject_mls.patch Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2008-11-07 14:44 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch might be somewhat controversial, it basically sets the
default for semanage to MLS mode when selinux is disabled.

System can not determine if the policy is MLS or not, so current default
is not, so semanage blows up on disabled machines.  A better long term
solution would be to add a interface to libsemanage to look at the
installed policy and decipher what the policy supports.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkkUVF8ACgkQrlYvE4MpobMG7wCfeSr2C2a2vc6Z3QVizdm4CpTk
EmwAoKDKxaDxq+Zrc3+Bp4RbjhrGUGXv
=GkGs
-----END PGP SIGNATURE-----

[-- Attachment #2: seobject_mls.patch --]
[-- Type: text/plain, Size: 412 bytes --]

--- nsapolicycoreutils/semanage/seobject.py	2008-09-12 11:48:15.000000000 -0400
+++ policycoreutils-2.0.57/semanage/seobject.py	2008-10-28 15:48:14.000000000 -0400
@@ -35,7 +35,7 @@
        import __builtin__
        __builtin__.__dict__['_'] = unicode
 
-is_mls_enabled = selinux.is_selinux_mls_enabled()
+is_mls_enabled = not selinux.is_selinux_enabled() or selinux.is_selinux_mls_enabled()
 
 import syslog
 

[-- Attachment #3: seobject_mls.patch.sig --]
[-- Type: application/octet-stream, Size: 72 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-07 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 14:44 seobject_mls.patch Daniel J Walsh
2008-11-07 15:31 ` seobject_mls.patch Stephen Smalley
2008-11-07 15:50   ` seobject_mls.patch Stephen Smalley

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.