diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 | */ | ||
1667 | int get_dumpable(struct mm_struct *mm) | 1673 | int get_dumpable(struct mm_struct *mm) |
1668 | { | 1674 | { |
1669 | return __get_dumpable(mm->flags); | 1675 | return __get_dumpable(mm->flags); |