From: Al Viro Date: Sun, 19 Jun 2011 16:49:47 +0000 (-0400) Subject: consolidate BINPRM_FLAGS_ENFORCE_NONDUMP handling X-Git-Tag: v3.1-rc1~282^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b5d783c94c328d406e801566f161adcfb018dda;p=pandora-kernel.git 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: Al Viro --- Reading git-diff-tree failed