Re: [PATCH] procfs: fixes pthread cross-thread naming if !PR_DUMPABLE

2016-05-03 Thread Janis Danisevskis
On 03/05/16 18:42, Kees Cook wrote: On Tue, May 3, 2016 at 10:25 AM, Janis Danisevskis wrote: On 26/04/16 21:14, Kees Cook wrote: On Tue, Apr 26, 2016 at 10:20 AM, Janis Danisevskis wrote: The PR_DUMPABLE flag causes the pid related paths of the proc file system to be owned by ROOT

Re: [PATCH] procfs: fixes pthread cross-thread naming if !PR_DUMPABLE

2016-05-03 Thread Janis Danisevskis
On 26/04/16 21:14, Kees Cook wrote: On Tue, Apr 26, 2016 at 10:20 AM, Janis Danisevskis wrote: The PR_DUMPABLE flag causes the pid related paths of the proc file system to be owned by ROOT. The implementation of pthread_set/getname_np however needs access to /proc//task//comm. If PR_DUMPABLE

[PATCH] procfs: fixes pthread cross-thread naming if !PR_DUMPABLE

2016-04-26 Thread Janis Danisevskis
the file "comm" that grants read and write access to all threads of the same group regardless of the ownership of the inode. For all other threads the function falls back to the generic inode permission check. Signed-off-by: Janis Danisevskis --- fs/proc/b