/[gentoo-x86]/x11-drivers/nvidia-drivers/files/nvidia-drivers-pax-const.patch
Gentoo

Contents of /x11-drivers/nvidia-drivers/files/nvidia-drivers-pax-const.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 29 03:41:50 2012 UTC (2 years, 8 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Use Stefan Reimer <it@startux.de> Quark's overlay patches for PAX hacks by popular demand. bug #385837.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 Binary files kernel.orig/.nv-procfs.c.swp and kernel/.nv-procfs.c.swp differ
2 diff -urp kernel.orig/nv-procfs.c kernel/nv-procfs.c
3 --- kernel.orig/nv-procfs.c 2011-07-13 03:29:30.000000000 +0200
4 +++ kernel/nv-procfs.c 2011-07-19 15:45:27.982993911 +0200
5 @@ -707,8 +707,10 @@ int nv_register_procfs(void)
6 * However, in preparation for this, we need to preserve
7 * the procfs read() and write() operations.
8 */
9 - nv_procfs_registry_fops.read = entry->proc_fops->read;
10 - nv_procfs_registry_fops.write = entry->proc_fops->write;
11 + pax_open_kernel();
12 + *(void **)&nv_procfs_registry_fops.read = entry->proc_fops->read;
13 + *(void **)&nv_procfs_registry_fops.write = entry->proc_fops->write;
14 + pax_close_kernel();
15
16 entry = NV_CREATE_PROC_FILE("registry", proc_nvidia,
17 nv_procfs_read_registry,

  ViewVC Help
Powered by ViewVC 1.1.20