Skip to content
Snippets Groups Projects
Commit 1b5d783c authored by Al Viro's avatar Al Viro
Browse files

consolidate BINPRM_FLAGS_ENFORCE_NONDUMP handling


new helper: would_dump(bprm, file).  Checks if we are allowed to
read the file and if we are not - sets ENFORCE_NODUMP.  Exported,
used in places that previously open-coded the same logics.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 78f32a9b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment