All of lore.kernel.org
 help / color / mirror / Atom feed
* upstart/SELinux problem loading the wrong policy with kernel version change
@ 2008-04-08  1:31 Daniel J Walsh
  2008-04-08 12:54 ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2008-04-08  1:31 UTC (permalink / raw)
  To: SE Linux

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

If you have a kernel that supports policy.21 and a tool chain that
supports policy.22 newer versions of policy and semanage changes will
update policy.22.  However if there is a policy.21 around upstart will
load this on a reboot.  (I guess init would have done the same.)

If the policy.21 does not exist libselinux will grab the highest policy
version and try to load it.

This is causing unlabeled_t files to be showing up.  Basically if I
install a new policy with a new type, and then assign the context to a
file, the next reboot will cause the file to be labeled unlabeled_t.

I suggest that we either remove policy versioning all together, or
change libselinux to default to loading the highest policy version.
Either way the current loading of policy is broken.

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

iEYEARECAAYFAkf6ywoACgkQrlYvE4MpobPKuwCePdHBoGYI13pVvugI/B9veFGo
88UAoKjr7Dp5gIaVW91rfbxgJQhngLCZ
=sAa6
-----END PGP SIGNATURE-----

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

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

end of thread, other threads:[~2008-04-18 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08  1:31 upstart/SELinux problem loading the wrong policy with kernel version change Daniel J Walsh
2008-04-08 12:54 ` Stephen Smalley
2008-04-08 13:29   ` Stephen Smalley
2008-04-18 14:32     ` 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.