aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index be4c81c7251c..977319fd77f3 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1664,6 +1664,12 @@ int __get_dumpable(unsigned long mm_flags)
1664 return (ret > SUID_DUMP_USER) ? SUID_DUMP_ROOT : ret; 1664 return (ret > SUID_DUMP_USER) ? SUID_DUMP_ROOT : ret;
1665} 1665}
1666 1666
1667/*
1668 * This returns the actual value of the suid_dumpable flag. For things
1669 * that are using this for checking for privilege transitions, it must
1670 * test against SUID_DUMP_USER rather than treating it as a boolean
1671 * value.
1672 */
1667int get_dumpable(struct mm_struct *mm) 1673int get_dumpable(struct mm_struct *mm)
1668{ 1674{
1669 return __get_dumpable(mm->flags); 1675 return __get_dumpable(mm->flags);