diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c0bb32414b17..4fc92445a29c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -56,6 +56,7 @@ | |||
56 | #include <linux/kprobes.h> | 56 | #include <linux/kprobes.h> |
57 | #include <linux/pipe_fs_i.h> | 57 | #include <linux/pipe_fs_i.h> |
58 | #include <linux/oom.h> | 58 | #include <linux/oom.h> |
59 | #include <linux/kmod.h> | ||
59 | 60 | ||
60 | #include <asm/uaccess.h> | 61 | #include <asm/uaccess.h> |
61 | #include <asm/processor.h> | 62 | #include <asm/processor.h> |
@@ -616,6 +617,11 @@ static struct ctl_table kern_table[] = { | |||
616 | .child = random_table, | 617 | .child = random_table, |
617 | }, | 618 | }, |
618 | { | 619 | { |
620 | .procname = "usermodehelper", | ||
621 | .mode = 0555, | ||
622 | .child = usermodehelper_table, | ||
623 | }, | ||
624 | { | ||
619 | .procname = "overflowuid", | 625 | .procname = "overflowuid", |
620 | .data = &overflowuid, | 626 | .data = &overflowuid, |
621 | .maxlen = sizeof(int), | 627 | .maxlen = sizeof(int), |
@@ -730,14 +736,16 @@ static struct ctl_table kern_table[] = { | |||
730 | .data = &watchdog_enabled, | 736 | .data = &watchdog_enabled, |
731 | .maxlen = sizeof (int), | 737 | .maxlen = sizeof (int), |
732 | .mode = 0644, | 738 | .mode = 0644, |
733 | .proc_handler = proc_dowatchdog_enabled, | 739 | .proc_handler = proc_dowatchdog, |
740 | .extra1 = &zero, | ||
741 | .extra2 = &one, | ||
734 | }, | 742 | }, |
735 | { | 743 | { |
736 | .procname = "watchdog_thresh", | 744 | .procname = "watchdog_thresh", |
737 | .data = &softlockup_thresh, | 745 | .data = &watchdog_thresh, |
738 | .maxlen = sizeof(int), | 746 | .maxlen = sizeof(int), |
739 | .mode = 0644, | 747 | .mode = 0644, |
740 | .proc_handler = proc_dowatchdog_thresh, | 748 | .proc_handler = proc_dowatchdog, |
741 | .extra1 = &neg_one, | 749 | .extra1 = &neg_one, |
742 | .extra2 = &sixty, | 750 | .extra2 = &sixty, |
743 | }, | 751 | }, |
@@ -755,7 +763,9 @@ static struct ctl_table kern_table[] = { | |||
755 | .data = &watchdog_enabled, | 763 | .data = &watchdog_enabled, |
756 | .maxlen = sizeof (int), | 764 | .maxlen = sizeof (int), |
757 | .mode = 0644, | 765 | .mode = 0644, |
758 | .proc_handler = proc_dowatchdog_enabled, | 766 | .proc_handler = proc_dowatchdog, |
767 | .extra1 = &zero, | ||
768 | .extra2 = &one, | ||
759 | }, | 769 | }, |
760 | #endif | 770 | #endif |
761 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) | 771 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) |
@@ -1496,7 +1506,7 @@ static struct ctl_table fs_table[] = { | |||
1496 | 1506 | ||
1497 | static struct ctl_table debug_table[] = { | 1507 | static struct ctl_table debug_table[] = { |
1498 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) || \ | 1508 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) || \ |
1499 | defined(CONFIG_S390) | 1509 | defined(CONFIG_S390) || defined(CONFIG_TILE) |
1500 | { | 1510 | { |
1501 | .procname = "exception-trace", | 1511 | .procname = "exception-trace", |
1502 | .data = &show_unhandled_signals, | 1512 | .data = &show_unhandled_signals, |