diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/binfmts.h | 3 | ||||
-rw-r--r-- | include/linux/sched.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index e8112ae50531..7554fd410bcc 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
@@ -99,9 +99,6 @@ extern void setup_new_exec(struct linux_binprm * bprm); | |||
99 | extern void would_dump(struct linux_binprm *, struct file *); | 99 | extern void would_dump(struct linux_binprm *, struct file *); |
100 | 100 | ||
101 | extern int suid_dumpable; | 101 | extern int suid_dumpable; |
102 | #define SUID_DUMP_DISABLE 0 /* No setuid dumping */ | ||
103 | #define SUID_DUMP_USER 1 /* Dump as user of process */ | ||
104 | #define SUID_DUMP_ROOT 2 /* Dump as root */ | ||
105 | 102 | ||
106 | /* Stack area protections */ | 103 | /* Stack area protections */ |
107 | #define EXSTACK_DEFAULT 0 /* Whatever the arch defaults to */ | 104 | #define EXSTACK_DEFAULT 0 /* Whatever the arch defaults to */ |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5e226fe3e512..f7efc8604652 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -323,6 +323,10 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) {} | |||
323 | extern void set_dumpable(struct mm_struct *mm, int value); | 323 | extern void set_dumpable(struct mm_struct *mm, int value); |
324 | extern int get_dumpable(struct mm_struct *mm); | 324 | extern int get_dumpable(struct mm_struct *mm); |
325 | 325 | ||
326 | #define SUID_DUMP_DISABLE 0 /* No setuid dumping */ | ||
327 | #define SUID_DUMP_USER 1 /* Dump as user of process */ | ||
328 | #define SUID_DUMP_ROOT 2 /* Dump as root */ | ||
329 | |||
326 | /* mm flags */ | 330 | /* mm flags */ |
327 | /* dumpable bits */ | 331 | /* dumpable bits */ |
328 | #define MMF_DUMPABLE 0 /* core dump is permitted */ | 332 | #define MMF_DUMPABLE 0 /* core dump is permitted */ |