git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
splice: Apply generic position and size checks to each write
[pandora-kernel.git]
/
fs
/
exec.c
diff --git
a/fs/exec.c
b/fs/exec.c
index
a2d0e51
..
78199eb
100644
(file)
--- 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;
}
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);
int get_dumpable(struct mm_struct *mm)
{
return __get_dumpable(mm->flags);