aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8c98d8147d88..d41ef6b4cf72 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -37,7 +37,6 @@
37#include <linux/highuid.h> 37#include <linux/highuid.h>
38#include <linux/writeback.h> 38#include <linux/writeback.h>
39#include <linux/hugetlb.h> 39#include <linux/hugetlb.h>
40#include <linux/security.h>
41#include <linux/initrd.h> 40#include <linux/initrd.h>
42#include <linux/times.h> 41#include <linux/times.h>
43#include <linux/limits.h> 42#include <linux/limits.h>
@@ -74,8 +73,6 @@ extern int suid_dumpable;
74extern char core_pattern[]; 73extern char core_pattern[];
75extern int pid_max; 74extern int pid_max;
76extern int min_free_kbytes; 75extern int min_free_kbytes;
77extern int printk_ratelimit_jiffies;
78extern int printk_ratelimit_burst;
79extern int pid_max_min, pid_max_max; 76extern int pid_max_min, pid_max_max;
80extern int sysctl_drop_caches; 77extern int sysctl_drop_caches;
81extern int percpu_pagelist_fraction; 78extern int percpu_pagelist_fraction;
@@ -491,14 +488,6 @@ static struct ctl_table kern_table[] = {
491 .mode = 0644, 488 .mode = 0644,
492 .proc_handler = &proc_dointvec, 489 .proc_handler = &proc_dointvec,
493 }, 490 },
494 {
495 .ctl_name = KERN_PRINTK,
496 .procname = "printk",
497 .data = &console_loglevel,
498 .maxlen = 4*sizeof(int),
499 .mode = 0644,
500 .proc_handler = &proc_dointvec,
501 },
502#ifdef CONFIG_KMOD 491#ifdef CONFIG_KMOD
503 { 492 {
504 .ctl_name = KERN_MODPROBE, 493 .ctl_name = KERN_MODPROBE,
@@ -645,6 +634,15 @@ static struct ctl_table kern_table[] = {
645 .mode = 0644, 634 .mode = 0644,
646 .proc_handler = &proc_dointvec, 635 .proc_handler = &proc_dointvec,
647 }, 636 },
637#if defined CONFIG_PRINTK
638 {
639 .ctl_name = KERN_PRINTK,
640 .procname = "printk",
641 .data = &console_loglevel,
642 .maxlen = 4*sizeof(int),
643 .mode = 0644,
644 .proc_handler = &proc_dointvec,
645 },
648 { 646 {
649 .ctl_name = KERN_PRINTK_RATELIMIT, 647 .ctl_name = KERN_PRINTK_RATELIMIT,
650 .procname = "printk_ratelimit", 648 .procname = "printk_ratelimit",
@@ -662,6 +660,7 @@ static struct ctl_table kern_table[] = {
662 .mode = 0644, 660 .mode = 0644,
663 .proc_handler = &proc_dointvec, 661 .proc_handler = &proc_dointvec,
664 }, 662 },
663#endif
665 { 664 {
666 .ctl_name = KERN_NGROUPS_MAX, 665 .ctl_name = KERN_NGROUPS_MAX,
667 .procname = "ngroups_max", 666 .procname = "ngroups_max",
@@ -982,7 +981,7 @@ static struct ctl_table vm_table[] = {
982 .data = &nr_overcommit_huge_pages, 981 .data = &nr_overcommit_huge_pages,
983 .maxlen = sizeof(nr_overcommit_huge_pages), 982 .maxlen = sizeof(nr_overcommit_huge_pages),
984 .mode = 0644, 983 .mode = 0644,
985 .proc_handler = &proc_doulongvec_minmax, 984 .proc_handler = &hugetlb_overcommit_handler,
986 }, 985 },
987#endif 986#endif
988 { 987 {
@@ -2488,7 +2487,7 @@ static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp
2488 pid_t tmp; 2487 pid_t tmp;
2489 int r; 2488 int r;
2490 2489
2491 tmp = pid_nr_ns(cad_pid, current->nsproxy->pid_ns); 2490 tmp = pid_vnr(cad_pid);
2492 2491
2493 r = __do_proc_dointvec(&tmp, table, write, filp, buffer, 2492 r = __do_proc_dointvec(&tmp, table, write, filp, buffer,
2494 lenp, ppos, NULL, NULL); 2493 lenp, ppos, NULL, NULL);