sysctl.c (1241eb8f136bf3ea409f61590e7663465906d158) sysctl.c (dfec072ecd35ba6ecad2d51dde325253ac9a2936)
1/*
2 * sysctl.c: General linux system control interface
3 *
4 * Begun 24 March 1995, Stephen Tweedie
5 * Added /proc support, Dec 1995
6 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas.
7 * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver.
8 * Added kernel/java-{interpreter,appletviewer}, 96/5/10, Mike Shaver.

--- 13 unchanged lines hidden (view full) ---

22#include <linux/mm.h>
23#include <linux/swap.h>
24#include <linux/slab.h>
25#include <linux/sysctl.h>
26#include <linux/proc_fs.h>
27#include <linux/security.h>
28#include <linux/ctype.h>
29#include <linux/utsname.h>
1/*
2 * sysctl.c: General linux system control interface
3 *
4 * Begun 24 March 1995, Stephen Tweedie
5 * Added /proc support, Dec 1995
6 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas.
7 * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver.
8 * Added kernel/java-{interpreter,appletviewer}, 96/5/10, Mike Shaver.

--- 13 unchanged lines hidden (view full) ---

22#include <linux/mm.h>
23#include <linux/swap.h>
24#include <linux/slab.h>
25#include <linux/sysctl.h>
26#include <linux/proc_fs.h>
27#include <linux/security.h>
28#include <linux/ctype.h>
29#include <linux/utsname.h>
30#include <linux/kmemcheck.h>
30#include <linux/smp_lock.h>
31#include <linux/fs.h>
32#include <linux/init.h>
33#include <linux/kernel.h>
34#include <linux/kobject.h>
35#include <linux/net.h>
36#include <linux/sysrq.h>
37#include <linux/highuid.h>

--- 72 unchanged lines hidden (view full) ---

110static int maxolduid = 65535;
111static int minolduid;
112static int min_percpu_pagelist_fract = 8;
113
114static int ngroups_max = NGROUPS_MAX;
115
116#ifdef CONFIG_MODULES
117extern char modprobe_path[];
31#include <linux/smp_lock.h>
32#include <linux/fs.h>
33#include <linux/init.h>
34#include <linux/kernel.h>
35#include <linux/kobject.h>
36#include <linux/net.h>
37#include <linux/sysrq.h>
38#include <linux/highuid.h>

--- 72 unchanged lines hidden (view full) ---

111static int maxolduid = 65535;
112static int minolduid;
113static int min_percpu_pagelist_fract = 8;
114
115static int ngroups_max = NGROUPS_MAX;
116
117#ifdef CONFIG_MODULES
118extern char modprobe_path[];
119extern int modules_disabled;
118#endif
119#ifdef CONFIG_CHR_DEV_SG
120extern int sg_big_buff;
121#endif
122
123#ifdef CONFIG_SPARC
124#include <asm/system.h>
125#endif

--- 404 unchanged lines hidden (view full) ---

530 .ctl_name = KERN_MODPROBE,
531 .procname = "modprobe",
532 .data = &modprobe_path,
533 .maxlen = KMOD_PATH_LEN,
534 .mode = 0644,
535 .proc_handler = &proc_dostring,
536 .strategy = &sysctl_string,
537 },
120#endif
121#ifdef CONFIG_CHR_DEV_SG
122extern int sg_big_buff;
123#endif
124
125#ifdef CONFIG_SPARC
126#include <asm/system.h>
127#endif

--- 404 unchanged lines hidden (view full) ---

532 .ctl_name = KERN_MODPROBE,
533 .procname = "modprobe",
534 .data = &modprobe_path,
535 .maxlen = KMOD_PATH_LEN,
536 .mode = 0644,
537 .proc_handler = &proc_dostring,
538 .strategy = &sysctl_string,
539 },
540 {
541 .ctl_name = CTL_UNNUMBERED,
542 .procname = "modules_disabled",
543 .data = &modules_disabled,
544 .maxlen = sizeof(int),
545 .mode = 0644,
546 /* only handle a transition from default "0" to "1" */
547 .proc_handler = &proc_dointvec_minmax,
548 .extra1 = &one,
549 .extra2 = &one,
550 },
538#endif
539#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
540 {
541 .ctl_name = KERN_HOTPLUG,
542 .procname = "hotplug",
543 .data = &uevent_helper,
544 .maxlen = UEVENT_HELPER_PATH_LEN,
545 .mode = 0644,

--- 396 unchanged lines hidden (view full) ---

942 .ctl_name = CTL_UNNUMBERED,
943 .procname = "perf_counter_max_sample_rate",
944 .data = &sysctl_perf_counter_sample_rate,
945 .maxlen = sizeof(sysctl_perf_counter_sample_rate),
946 .mode = 0644,
947 .proc_handler = &proc_dointvec,
948 },
949#endif
551#endif
552#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
553 {
554 .ctl_name = KERN_HOTPLUG,
555 .procname = "hotplug",
556 .data = &uevent_helper,
557 .maxlen = UEVENT_HELPER_PATH_LEN,
558 .mode = 0644,

--- 396 unchanged lines hidden (view full) ---

955 .ctl_name = CTL_UNNUMBERED,
956 .procname = "perf_counter_max_sample_rate",
957 .data = &sysctl_perf_counter_sample_rate,
958 .maxlen = sizeof(sysctl_perf_counter_sample_rate),
959 .mode = 0644,
960 .proc_handler = &proc_dointvec,
961 },
962#endif
963#ifdef CONFIG_KMEMCHECK
964 {
965 .ctl_name = CTL_UNNUMBERED,
966 .procname = "kmemcheck",
967 .data = &kmemcheck_enabled,
968 .maxlen = sizeof(int),
969 .mode = 0644,
970 .proc_handler = &proc_dointvec,
971 },
972#endif
973
950/*
951 * NOTE: do not add new entries to this table unless you have read
952 * Documentation/sysctl/ctl_unnumbered.txt
953 */
954 { .ctl_name = 0 }
955};
956
957static struct ctl_table vm_table[] = {

--- 297 unchanged lines hidden (view full) ---

1255 .procname = "stat_interval",
1256 .data = &sysctl_stat_interval,
1257 .maxlen = sizeof(sysctl_stat_interval),
1258 .mode = 0644,
1259 .proc_handler = &proc_dointvec_jiffies,
1260 .strategy = &sysctl_jiffies,
1261 },
1262#endif
974/*
975 * NOTE: do not add new entries to this table unless you have read
976 * Documentation/sysctl/ctl_unnumbered.txt
977 */
978 { .ctl_name = 0 }
979};
980
981static struct ctl_table vm_table[] = {

--- 297 unchanged lines hidden (view full) ---

1279 .procname = "stat_interval",
1280 .data = &sysctl_stat_interval,
1281 .maxlen = sizeof(sysctl_stat_interval),
1282 .mode = 0644,
1283 .proc_handler = &proc_dointvec_jiffies,
1284 .strategy = &sysctl_jiffies,
1285 },
1286#endif
1263#ifdef CONFIG_SECURITY
1264 {
1265 .ctl_name = CTL_UNNUMBERED,
1266 .procname = "mmap_min_addr",
1267 .data = &mmap_min_addr,
1268 .maxlen = sizeof(unsigned long),
1269 .mode = 0644,
1270 .proc_handler = &proc_doulongvec_minmax,
1271 },
1287 {
1288 .ctl_name = CTL_UNNUMBERED,
1289 .procname = "mmap_min_addr",
1290 .data = &mmap_min_addr,
1291 .maxlen = sizeof(unsigned long),
1292 .mode = 0644,
1293 .proc_handler = &proc_doulongvec_minmax,
1294 },
1272#endif
1273#ifdef CONFIG_NUMA
1274 {
1275 .ctl_name = CTL_UNNUMBERED,
1276 .procname = "numa_zonelist_order",
1277 .data = &numa_zonelist_order,
1278 .maxlen = NUMA_ZONELIST_ORDER_LEN,
1279 .mode = 0644,
1280 .proc_handler = &numa_zonelist_order_handler,

--- 1883 unchanged lines hidden ---
1295#ifdef CONFIG_NUMA
1296 {
1297 .ctl_name = CTL_UNNUMBERED,
1298 .procname = "numa_zonelist_order",
1299 .data = &numa_zonelist_order,
1300 .maxlen = NUMA_ZONELIST_ORDER_LEN,
1301 .mode = 0644,
1302 .proc_handler = &numa_zonelist_order_handler,

--- 1883 unchanged lines hidden ---