aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStanislav Kinsburskiy <[email protected]>2016-12-12 16:40:42 -0800
committerLinus Torvalds <[email protected]>2016-12-12 18:55:06 -0800
commit3fb4afd9a504c2386b8435028d43283216bf588e (patch)
treeaad5f0e354c090426b8f9934162b2d5899a806f1 /tools/perf/scripts/python
parentc0b942a76361e08fc9fb17989e0f266e64ff0688 (diff)
prctl: remove one-shot limitation for changing exe link
This limitation came with the reason to remove "another way for malicious code to obscure a compromised program and masquerade as a benign process" by allowing "security-concious program can use this prctl once during its early initialization to ensure the prctl cannot later be abused for this purpose": http://marc.info/?l=linux-kernel&m=133160684517468&w=2 This explanation doesn't look sufficient. The only thing "exe" link is indicating is the file, used to execve, which is basically nothing and not reliable immediately after process has returned from execve system call. Moreover, to use this feture, all the mappings to previous exe file have to be unmapped and all the new exe file permissions must be satisfied. Which means, that changing exe link is very similar to calling execve on the binary. The need to remove this limitations comes from migration of NFS mount point, which is not accessible during restore and replaced by other file system. Because of this exe link has to be changed twice. [[email protected]: fix up comment] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Stanislav Kinsburskiy <[email protected]> Acked-by: Oleg Nesterov <[email protected]> Acked-by: Cyrill Gorcunov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Kees Cook <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: John Stultz <[email protected]> Cc: Matt Helsley <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Eric W. Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions