rpms/kernel/F-8 linux-2.6-selinux-strip-leading-slashes.patch, NONE, 1.1 kernel.spec, 1.336, 1.337
Chuck Ebbert (cebbert)
fedora-extras-commits at redhat.com
Fri Feb 1 00:49:57 UTC 2008
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29590
Modified Files:
kernel.spec
Added Files:
linux-2.6-selinux-strip-leading-slashes.patch
Log Message:
* Thu Jan 31 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.23.14-127
- Strip extra leading slashes from path names in selinux.
linux-2.6-selinux-strip-leading-slashes.patch:
--- NEW FILE linux-2.6-selinux-strip-leading-slashes.patch ---
commit b1aa5301b9f88a4891061650c591fb8fe1c1d1da
Author: Stephen Smalley <sds at tycho.nsa.gov>
Date: Fri Jan 25 13:03:42 2008 -0500
selinux: fix labeling of /proc/net inodes
The proc net rewrite had a side effect on selinux, leading it to mislabel
the /proc/net inodes, thereby leading to incorrect denials. Fix
security_genfs_sid to ignore extra leading / characters in the path supplied
by selinux_proc_get_sid since we now get "//net/..." rather than "/net/...".
Signed-off-by: Stephen Smalley <sds at tycho.nsa.gov>
Signed-off-by: James Morris <jmorris at namei.org>
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index f83b19d..4bf715d 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -1744,6 +1744,9 @@ int security_genfs_sid(const char *fstype,
struct ocontext *c;
int rc = 0, cmp = 0;
+ while (path[0] == '/' && path[1] == '/')
+ path++;
+
POLICY_RDLOCK;
for (genfs = policydb.genfs; genfs; genfs = genfs->next) {
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.336
retrieving revision 1.337
diff -u -r1.336 -r1.337
--- kernel.spec 31 Jan 2008 20:26:33 -0000 1.336
+++ kernel.spec 1 Feb 2008 00:49:21 -0000 1.337
@@ -672,6 +672,7 @@
Patch510: linux-2.6-silence-noise.patch
Patch570: linux-2.6-selinux-mprotect-checks.patch
Patch571: linux-2.6-selinux-fix-netlabel-leak.patch
+Patch572: linux-2.6-selinux-strip-leading-slashes.patch
Patch590: linux-2.6-unexport-symbols.patch
Patch600: linux-2.6-vm-silence-atomic-alloc-failures.patch
# Patch602: linux-2.6-mm-fix-ptrace-access-beyond-vma.patch
@@ -1287,7 +1288,10 @@
# Fix the SELinux mprotect checks on executable mappings
ApplyPatch linux-2.6-selinux-mprotect-checks.patch
+# don't leak memory in netlabel code
ApplyPatch linux-2.6-selinux-fix-netlabel-leak.patch
+# strip extra leading slashes in pathnames
+ApplyPatch linux-2.6-selinux-strip-leading-slashes.patch
# Remove kernel-internal functionality that nothing external should use.
ApplyPatch linux-2.6-unexport-symbols.patch
@@ -2061,6 +2065,9 @@
%changelog
+* Thu Jan 31 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.23.14-127
+- Strip extra leading slashes from path names in selinux.
+
* Thu Jan 31 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.23.14-126
- Added Atheros L2 fast Ethernet driver (atl2).
More information about the fedora-extras-commits
mailing list