diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 3d56fe7570da..0b627d9c93d8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -487,6 +487,26 @@ static struct ctl_table kern_table[] = { | |||
487 | .proc_handler = &ftrace_enable_sysctl, | 487 | .proc_handler = &ftrace_enable_sysctl, |
488 | }, | 488 | }, |
489 | #endif | 489 | #endif |
490 | #ifdef CONFIG_STACK_TRACER | ||
491 | { | ||
492 | .ctl_name = CTL_UNNUMBERED, | ||
493 | .procname = "stack_tracer_enabled", | ||
494 | .data = &stack_tracer_enabled, | ||
495 | .maxlen = sizeof(int), | ||
496 | .mode = 0644, | ||
497 | .proc_handler = &stack_trace_sysctl, | ||
498 | }, | ||
499 | #endif | ||
500 | #ifdef CONFIG_TRACING | ||
501 | { | ||
502 | .ctl_name = CTL_UNNUMBERED, | ||
503 | .procname = "ftrace_dump_on_oops", | ||
504 | .data = &ftrace_dump_on_oops, | ||
505 | .maxlen = sizeof(int), | ||
506 | .mode = 0644, | ||
507 | .proc_handler = &proc_dointvec, | ||
508 | }, | ||
509 | #endif | ||
490 | #ifdef CONFIG_MODULES | 510 | #ifdef CONFIG_MODULES |
491 | { | 511 | { |
492 | .ctl_name = KERN_MODPROBE, | 512 | .ctl_name = KERN_MODPROBE, |
@@ -1651,7 +1671,7 @@ out: | |||
1651 | 1671 | ||
1652 | static int test_perm(int mode, int op) | 1672 | static int test_perm(int mode, int op) |
1653 | { | 1673 | { |
1654 | if (!current->euid) | 1674 | if (!current_euid()) |
1655 | mode >>= 6; | 1675 | mode >>= 6; |
1656 | else if (in_egroup_p(0)) | 1676 | else if (in_egroup_p(0)) |
1657 | mode >>= 3; | 1677 | mode >>= 3; |