diff options
| author | Oleg Nesterov <[email protected]> | 2013-09-11 14:24:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-09-11 15:59:05 -0700 |
| commit | 52f14282bb0c3d3e5ba2a9eaacb12ff37a033e7e (patch) | |
| tree | c0f02056772e53e294784388b4202e94271c46e6 /tools/perf/scripts/python | |
| parent | 9beb266f2d7e5362c5bb9f999255aa1af5318aef (diff) | |
exec: move allow_write_access/fput to exec_binprm()
When search_binary_handler() succeeds it does allow_write_access() and
fput(), then it clears bprm->file to ensure the caller will not do the
same.
We can simply move this code to exec_binprm() which is called only once.
In fact we could move this to free_bprm() and remove the same code in
do_execve_common's error path.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: Zach Levis <[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