rpms/kernel/devel linux-2.6-sparc-selinux-mprotect-checks.patch, NONE, 1.1 kernel.spec, 1.526, 1.527
Tom Callaway (spot)
fedora-extras-commits at redhat.com
Sun Mar 23 21:31:50 UTC 2008
- Previous message (by thread): rpms/kernel/devel config-sparc64-generic,1.13,1.14
- Next message (by thread): rpms/emacs-vm/devel .cvsignore, 1.11, 1.12 emacs-vm.spec, 1.27, 1.28 sources, 1.11, 1.12 u-vm-color.el, 1.1, NONE vm-8.0.3-fix-Makefile.patch, 1.1, NONE vm-8.0.7-522-fix-redistributed-flag.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: spot
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21048
Modified Files:
kernel.spec
Added Files:
linux-2.6-sparc-selinux-mprotect-checks.patch
Log Message:
fix selinux mprotect on sparc
linux-2.6-sparc-selinux-mprotect-checks.patch:
--- NEW FILE linux-2.6-sparc-selinux-mprotect-checks.patch ---
diff -up linux-2.6.24.sparc64/security/selinux/hooks.c.BAD linux-2.6.24.sparc64/security/selinux/hooks.c
--- linux-2.6.24.sparc64/security/selinux/hooks.c.BAD 2008-03-21 14:28:06.000000000 -0400
+++ linux-2.6.24.sparc64/security/selinux/hooks.c 2008-03-21 14:29:10.000000000 -0400
@@ -2825,6 +2825,7 @@ static int selinux_file_ioctl(struct fil
static int file_map_prot_check(struct file *file, unsigned long prot, int shared)
{
+#ifndef CONFIG_SPARC
if ((prot & PROT_EXEC) && (!file || (!shared && (prot & PROT_WRITE)))) {
/*
* We are making executable an anonymous mapping or a
@@ -2835,6 +2836,7 @@ static int file_map_prot_check(struct fi
if (rc)
return rc;
}
+#endif
if (file) {
/* read access is always possible with a mapping */
@@ -2885,6 +2887,7 @@ static int selinux_file_mprotect(struct
if (selinux_checkreqprot)
prot = reqprot;
+#ifndef CONFIG_SPARC
if ((prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) {
rc = 0;
if (vma->vm_start >= vma->vm_mm->start_brk &&
@@ -2909,6 +2912,7 @@ static int selinux_file_mprotect(struct
if (rc)
return rc;
}
+#endif
return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED);
}
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.526
retrieving revision 1.527
diff -u -r1.526 -r1.527
--- kernel.spec 23 Mar 2008 21:11:47 -0000 1.526
+++ kernel.spec 23 Mar 2008 21:30:40 -0000 1.527
@@ -593,6 +593,7 @@
Patch460: linux-2.6-serial-460800.patch
Patch510: linux-2.6-silence-noise.patch
Patch570: linux-2.6-selinux-mprotect-checks.patch
+Patch580: linux-2.6-sparc-selinux-mprotect-checks.patch
Patch610: linux-2.6-defaults-fat-utf8.patch
Patch660: linux-2.6-libata-ali-atapi-dma.patch
Patch670: linux-2.6-ata-quirk.patch
@@ -1070,6 +1071,8 @@
# Fix the SELinux mprotect checks on executable mappings
ApplyPatch linux-2.6-selinux-mprotect-checks.patch
+# Fix SELinux for sparc
+ApplyPatch linux-2.6-sparc-selinux-mprotect-checks.patch
# Changes to upstream defaults.
# Use UTF-8 by default on VFAT.
@@ -1729,6 +1732,9 @@
%kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL} -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf %{with_xen} xen
%changelog
+* Sun Mar 23 2008 Tom "spot" Callaway <tcallawa at redhat.com>
+- fix selinux mprotect for sparc
+
* Sun Mar 23 2008 Roland McGrath <roland at redhat.com>
- utrace update with sparc64 support
- Previous message (by thread): rpms/kernel/devel config-sparc64-generic,1.13,1.14
- Next message (by thread): rpms/emacs-vm/devel .cvsignore, 1.11, 1.12 emacs-vm.spec, 1.27, 1.28 sources, 1.11, 1.12 u-vm-color.el, 1.1, NONE vm-8.0.3-fix-Makefile.patch, 1.1, NONE vm-8.0.7-522-fix-redistributed-flag.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list