summaryrefslogtreecommitdiffstats
path: root/crypto/blowfish_generic.c
diff options
context:
space:
mode:
authorOleg Nesterov2013-09-11 23:24:41 +0200
committerLinus Torvalds2013-09-12 00:59:05 +0200
commit52f14282bb0c3d3e5ba2a9eaacb12ff37a033e7e (patch)
treec0f02056772e53e294784388b4202e94271c46e6 /crypto/blowfish_generic.c
parentexec: proc_exec_connector() should be called only once (diff)
downloadkernel-qcow2-linux-52f14282bb0c3d3e5ba2a9eaacb12ff37a033e7e.tar.gz
kernel-qcow2-linux-52f14282bb0c3d3e5ba2a9eaacb12ff37a033e7e.tar.xz
kernel-qcow2-linux-52f14282bb0c3d3e5ba2a9eaacb12ff37a033e7e.zip
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 <oleg@redhat.com> Acked-by: Kees Cook <keescook@chromium.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Evgeniy Polyakov <zbr@ioremap.net> Cc: Zach Levis <zml@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/blowfish_generic.c')
0 files changed, 0 insertions, 0 deletions