[PATCH] __ptrace_may_access() should not deny sub-threads

2013-08-11 Thread Oleg Nesterov
From: Mark Grondona __ptrace_may_access() checks get_dumpable/ptrace_has_cap/etc if task != current, this can can lead to surprising results. For example, a sub-thread can't readlink("/proc/self/exe") if the executable is not readable. setup_new_exec()->would_dump() notices that

[PATCH] __ptrace_may_access() should not deny sub-threads

2013-08-11 Thread Oleg Nesterov
From: Mark Grondona mgrond...@llnl.gov __ptrace_may_access() checks get_dumpable/ptrace_has_cap/etc if task != current, this can can lead to surprising results. For example, a sub-thread can't readlink(/proc/self/exe) if the executable is not readable. setup_new_exec()-would_dump() notices that