Skip to contentSkip to conversation

selinux: Remove the "compat_net" compatibility code

RFC PATCH In review Paul Moore 2 participants 3 messages Feb 4, 2009 – Feb 5, 2009

Subsystems (2)
lore
Share & tools
lore

Paul Moore

author
#0 lore raw

RFC PATCH 1/1 selinux: Remove the "compat_net" compatibility code

The SELinux "compat_net" is marked as deprecated, the time has come to finally remove it from the kernel. Further code simplifications are likely in the future, but this patch was intended to be a simple, straight-up removal of the compat_net code.

[NOTE: I've lightly tested this on current 2.6.29-rcX kernels without
problem, I'm posting this to solicit any comments. I'm also going to push this to the lblnet-2.6_next tree so we should see this in linux-next in the next day (or two).]
---

 Documentation/feature-removal-schedule.txt |   12 --
 security/selinux/hooks.c                   |  153 +---------------------------
 security/selinux/selinuxfs.c               |   68 ------------
 3 files changed, 7 insertions(+), 226 deletions(-)
Documentation/feature-removal-schedule.txt +0 -12
index 5ddbe35..d6b6dc0 100644
@@ -323,15 +323,3 @@ When:	June 2009
 Why:	Deprecated by the new fschmd driver.
 Who:	Hans de Goede <[email protected]>
 	Jean Delvare <[email protected]>
-
----------------------------
-
-What:	SELinux "compat_net" functionality
-When:	2.6.30 at the earliest
-Why:	In 2.6.18 the Secmark concept was introduced to replace the "compat_net"
-	network access control functionality of SELinux.  Secmark offers both
-	better performance and greater flexibility than the "compat_net"
-	mechanism.  Now that the major Linux distributions have moved to
-	Secmark, it is time to deprecate the older mechanism and start the
-	process of removing the old code.
-Who:	Paul Moore <[email protected]>
security/selinux/hooks.c +7 -146

200 lines not on this page · raw message

security/selinux/selinuxfs.c +0 -68

92 lines not on this page · raw message

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · Paul Moore

The SELinux "compat_net" is marked as deprecated, the time has come to finally remove it from the kernel. Further code simplifications are likely in the future, but this patch was intended to be a simple, straight-up removal of the compat_net code.

Need to also remove documentation from Documentation/kernel-parameters.txt

Signature · 7 lines
James Morris
<[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 8 lines · James Morris
Quoted 4 lines · Paul Moore

The SELinux "compat_net" is marked as deprecated, the time has come to finally remove it from the kernel. Further code simplifications are likely in the future, but this patch was intended to be a simple, straight-up removal of the compat_net code.

Need to also remove documentation from
Documentation/kernel-parameters.txt

Good catch, forgot about that. I'll make the change today.

Signature · 7 lines
paul moore
linux @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.