All of lore.kernel.org
 help / color / mirror / Atom feed
* Policy backward compatibility
@ 2004-04-08 13:21 Stephen Smalley
  2004-04-08 17:04 ` Valdis.Kletnieks
  2004-04-12  8:34 ` Russell Coker
  0 siblings, 2 replies; 12+ messages in thread
From: Stephen Smalley @ 2004-04-08 13:21 UTC (permalink / raw)
  To: selinux; +Cc: James Morris, Daniel J Walsh, Russell Coker, selinux-dev

Hi,

I wanted to raise the issue of policy backward compatibility for general
discussion, as this has been coming up in private discussions recently
as new enhancements have been made to SELinux.  When Tresys implemented
the conditional policy extensions (policy version 16), they included
compatibility code in the kernel and checkpolicy so that the kernel
would continue to accept the older policy version and so that
checkpolicy could continue to generate the older policy version.  James
Morris generalized this compatibility support and extended it when he
implemented support for ipv6 node labeling (policy version 17), so that
the kernel and checkpolicy could handle versions 17-15.  

There are at least three other possible enhancements that I know of that
will require further changes to the binary policy format (split netlink
classes, automatic user identity transitions, conditional support for
RBAC rules), plus we need to purge the initial SID and access vector
definitions at some point of obsolete symbols so that they are
consistent with the current implementation, which will likely require
another policy version change as existing initial SID and permission
values will be affected.

The concern is that the backward compatibility code is becoming
increasingly cumbersome, and providing safe behavior for compatibility
isn't always straightforward.  This kind of compatibility code also
seems inconsistent with typical kernel practice.  James has proposed
dropping the backward compatibility support, and requiring that every
installed kernel have a suitable binary policy installed, possibly
encoding the associated kernel release (e.g. output of uname -r) in the
binary policy pathname (and possibly doing likewise for the checkpolicy
program?).  

Thoughts?

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency


--
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] 12+ messages in thread

end of thread, other threads:[~2004-04-23 12:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-08 13:21 Policy backward compatibility Stephen Smalley
2004-04-08 17:04 ` Valdis.Kletnieks
2004-04-08 17:09   ` Stephen Smalley
2004-04-08 21:22     ` Valdis.Kletnieks
2004-04-12  8:34 ` Russell Coker
2004-04-13 13:14   ` Stephen Smalley
2004-04-13 13:22     ` Stephen Smalley
2004-04-13 13:33       ` Stephen Smalley
2004-04-13 18:31         ` Karl MacMillan
2004-04-13 22:58         ` Russell Coker
2004-04-23 12:30         ` John D. Ramsdell
2004-04-13 13:30     ` James Morris

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.