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
5 struct mm_struct *mm = NULL;
6 struct task_struct *tsk;
7 + struct pid_namespace *ns;
10 - tsk = find_task_by_pid(pid);
12 + tsk = pid_task(find_pid_ns(pid, ns), PIDTYPE_PID);
15 "/proc/%s: can't find task for pid %d\n",
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 */