On 01/10/2014 09:56 AM, Stephen Smalley wrote: > On 01/10/2014 09:49 AM, Paul Moore wrote: >> On Friday, January 10, 2014 09:42:42 AM Stephen Smalley wrote: >>> On 01/09/2014 06:07 PM, Eric Paris wrote: >>>> I believe we need a new initial sid. SECINITSID_INVALID_LABEL.... >>> >>> Difficult (impossible?) to do in a fully backward compatible manner (to >>> include the case of loading new policy on old kernel, whether initially >>> or update/reload on an already running kernel with an older policy). >> >> Do we really need to worry about being able to load new policy into a old >> kernel? In general I thought the backward compatible issue was that newer >> kernels needed to support older userspace, not the other way around. > > Well, you'll at least need code in the kernel to handle the case where > the policy does not define any new initial SIDs that you introduce in > the policy, remapping them to e.g. unlabeled or something. > > And you likely want to ensure that people don't accidentally load new > policy into old kernel and break things, whether by tying the new > initial SIDS to a policy capability or policy version. But reusing one of the dead initial SIDs might be easier - I think you have done that previously for some of the networking ones. Currently unused ones are: sid file_labels u:object_r:unlabeled:s0 sid init u:object_r:unlabeled:s0 sid igmp_packet u:object_r:unlabeled:s0 sid icmp_socket u:object_r:unlabeled:s0 sid tcp_socket u:object_r:unlabeled:s0 sid sysctl_modprobe u:object_r:unlabeled:s0 sid sysctl_fs u:object_r:unlabeled:s0 sid sysctl_kernel u:object_r:unlabeled:s0 sid sysctl_net u:object_r:unlabeled:s0 sid sysctl_net_unix u:object_r:unlabeled:s0 sid sysctl_vm u:object_r:unlabeled:s0 sid sysctl_dev u:object_r:unlabeled:s0 sid kmod u:object_r:unlabeled:s0 sid policy u:object_r:unlabeled:s0 sid scmp_packet u:object_r:unlabeled:s0 Some of those were never used in any mainline kernel. Others were used but ultimately removed. _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.