diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 731edaca8ffd..8dbd08366400 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -345,6 +345,13 @@ typedef unsigned long mm_counter_t; | |||
345 | (mm)->hiwater_vm = (mm)->total_vm; \ | 345 | (mm)->hiwater_vm = (mm)->total_vm; \ |
346 | } while (0) | 346 | } while (0) |
347 | 347 | ||
348 | extern void set_dumpable(struct mm_struct *mm, int value); | ||
349 | extern int get_dumpable(struct mm_struct *mm); | ||
350 | |||
351 | /* mm flags */ | ||
352 | #define MMF_DUMPABLE 0 /* core dump is permitted */ | ||
353 | #define MMF_DUMP_SECURELY 1 /* core file is readable only by root */ | ||
354 | |||
348 | struct mm_struct { | 355 | struct mm_struct { |
349 | struct vm_area_struct * mmap; /* list of VMAs */ | 356 | struct vm_area_struct * mmap; /* list of VMAs */ |
350 | struct rb_root mm_rb; | 357 | struct rb_root mm_rb; |
@@ -402,7 +409,7 @@ struct mm_struct { | |||
402 | unsigned int token_priority; | 409 | unsigned int token_priority; |
403 | unsigned int last_interval; | 410 | unsigned int last_interval; |
404 | 411 | ||
405 | unsigned char dumpable:2; | 412 | unsigned long flags; /* Must use atomic bitops to access the bits */ |
406 | 413 | ||
407 | /* coredumping support */ | 414 | /* coredumping support */ |
408 | int core_waiters; | 415 | int core_waiters; |