summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2016-04-14 13:57:03 +0100
committerJanis Danisevskis <jdanis@google.com>2016-05-11 08:46:18 +0000
commit92c4fc6f0946e846dee50b79b5dd061fe795dfaf (patch)
tree6e8d6e159b52601cef8ba6224146f1c7ff7a2dff /scripts
parente9253e876087accdab8edb763cfa4c3a48a8ce66 (diff)
UPSTREAM: procfs: fixes pthread cross-thread naming if !PR_DUMPABLE
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/<pid>/task/<tid>/comm. If PR_DUMPABLE is false this implementation is locked out. This patch installs a special permission function for 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 <jdanis@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions