Skip to content
Commit bdd8f624 authored by Kees Cook's avatar Kees Cook
Browse files

exec: Add do_close_execat() helper

Consolidate the calls to allow_write_access()/fput() into a single
place, since we repeat this code pattern. Add comments around the
callers for the details on it.

Link: https://lore.kernel.org/r/202209161637.9EDAF6B18@keescook


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 8788a17c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment