X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fexec.c;h=7adde4df08fe8d6df5b9843aa3eb62e15202ec3a;hb=8fb4574acbf03f821002cfcf759292f732541b0c;hp=ad963afcbe90325c1deca5295ef7c2ac416cc83d;hpb=d63ff34838f434f99056ab6be25a5b55920283f0;p=pandora-kernel.git diff --git a/fs/exec.c b/fs/exec.c index ad963afcbe90..7adde4df08fe 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -2032,6 +2032,12 @@ static int __get_dumpable(unsigned long mm_flags) return (ret >= 2) ? 2 : ret; } +/* + * This returns the actual value of the suid_dumpable flag. For things + * that are using this for checking for privilege transitions, it must + * test against SUID_DUMP_USER rather than treating it as a boolean + * value. + */ int get_dumpable(struct mm_struct *mm) { return __get_dumpable(mm->flags);