Open amscanne opened 5 years ago
A friendly reminder that this issue had no activity for 120 days.
This issue has been closed due to lack of activity.
There are TODOs still referencing this issue:
Search TODO
A friendly reminder that this issue had no activity for 120 days.
Calling execve on a binary with execute permissions but no read permissions is allowed. However, the resulting task is marked non-dumpable[1] by the kernel.
This affects __ptrace_may_access[2], which enforces access by ptrace and to many proc files.
Basically, execute-no-read binaries are a subset of typical setuid binaries.
[1] https://elixir.bootlin.com/linux/v5.0.4/source/fs/exec.c#L1316 [2] https://elixir.bootlin.com/linux/v5.0.4/source/kernel/ptrace.c#L327