restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace pid
[deliverable/linux.git] / kernel / ptrace.c
index 7c76f2ffaeaad78060cfb3223857a89c7a4ccb8f..0c65d306f41200adaa0b60311eb7493f4d5f0939 100644 (file)
@@ -120,7 +120,7 @@ int ptrace_check_attach(struct task_struct *child, int kill)
        return ret;
 }
 
-static int may_attach(struct task_struct *task)
+int __ptrace_may_attach(struct task_struct *task)
 {
        /* May we inspect the given task?
         * This check is used both for attaching with ptrace
@@ -154,7 +154,7 @@ int ptrace_may_attach(struct task_struct *task)
 {
        int err;
        task_lock(task);
-       err = may_attach(task);
+       err = __ptrace_may_attach(task);
        task_unlock(task);
        return !err;
 }
This page took 0.027111 seconds and 5 git commands to generate.