updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / exmap / kernel31.patch
blob2fd514a25d15d5682f12068ebf766b018d37b77c
1 --- exmap.orig/kernel/exmap.c 2010-01-01 15:52:11.000000000 +0100
2 +++ exmap/kernel/exmap.c 2010-01-01 16:00:01.669602698 +0100
3 @@ -390,9 +390,11 @@
5 struct mm_struct *mm = NULL;
6 struct task_struct *tsk;
7 + struct pid_namespace *ns;
8 int errcode = -EINVAL;
10 - tsk = find_task_by_pid(pid);
11 + ns = &init_pid_ns;
12 + tsk = pid_task(find_pid_ns(pid, ns), PIDTYPE_PID);
13 if (tsk == NULL) {
14 printk (KERN_ALERT
15 "/proc/%s: can't find task for pid %d\n",
16 @@ -515,7 +517,6 @@
18 exmap_proc_file->read_proc = procfile_read;
19 exmap_proc_file->write_proc = procfile_write;
20 - exmap_proc_file->owner = THIS_MODULE;
22 /* exmap_proc_file->mode = S_IFREG | S_IRUGO; */
23 /* TODO - this is quite probably a security problem */