Skip to content

Commit 61a47c1

Browse files
committed
sysctl: Remove the sysctl system call
This system call has been deprecated almost since it was introduced, and in a survey of the linux distributions I can no longer find any of them that enable CONFIG_SYSCTL_SYSCALL. The only indication that I can find that anyone might care is that a few of the defconfigs in the kernel enable CONFIG_SYSCTL_SYSCALL. However this appears in only 31 of 414 defconfigs in the kernel, so I suspect this symbols presence is simply because it is harmless to include rather than because it is necessary. As there appear to be no users of the sysctl system call, remove the code. As this removes one of the few uses of the internal kernel mount of proc I hope this allows for even more simplifications of the proc filesystem. Cc: Alex Smith <[email protected]> Cc: Anders Berg <[email protected]> Cc: Apelete Seketeli <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Chee Nouk Phoon <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Christian Ruppert <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: Harvey Hunt <[email protected]> Cc: Helge Deller <[email protected]> Cc: Hongliang Tao <[email protected]> Cc: Hua Yan <[email protected]> Cc: Huacai Chen <[email protected]> Cc: John Crispin <[email protected]> Cc: Jonas Jensen <[email protected]> Cc: Josh Boyer <[email protected]> Cc: Jun Nie <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Kevin Wells <[email protected]> Cc: Kumar Gala <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: Ley Foon Tan <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Markos Chandras <[email protected]> Cc: Max Filippov <[email protected]> Cc: Noam Camus <[email protected]> Cc: Olof Johansson <[email protected]> Cc: Paul Burton <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Phil Edworthy <[email protected]> Cc: Pierrick Hascoet <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Roland Stigge <[email protected]> Cc: Santosh Shilimkar <[email protected]> Cc: Scott Telford <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Steven J. Hill <[email protected]> Cc: Tanmay Inamdar <[email protected]> Cc: Vineet Gupta <[email protected]> Cc: Wolfram Sang <[email protected]> Acked-by: Andi Kleen <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 54ecb8f commit 61a47c1

34 files changed

+0
-1354
lines changed

arch/arc/configs/nps_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ CONFIG_IKCONFIG=y
77
CONFIG_IKCONFIG_PROC=y
88
CONFIG_BLK_DEV_INITRD=y
99
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
10-
CONFIG_SYSCTL_SYSCALL=y
1110
# CONFIG_EPOLL is not set
1211
# CONFIG_SIGNALFD is not set
1312
# CONFIG_TIMERFD is not set

arch/arc/configs/tb10x_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ CONFIG_INITRAMFS_ROOT_UID=2100
1515
CONFIG_INITRAMFS_ROOT_GID=501
1616
# CONFIG_RD_GZIP is not set
1717
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
18-
CONFIG_SYSCTL_SYSCALL=y
1918
CONFIG_KALLSYMS_ALL=y
2019
# CONFIG_AIO is not set
2120
CONFIG_EMBEDDED=y

arch/arm/configs/axm55xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ CONFIG_NAMESPACES=y
2020
CONFIG_SCHED_AUTOGROUP=y
2121
CONFIG_RELAY=y
2222
CONFIG_BLK_DEV_INITRD=y
23-
CONFIG_SYSCTL_SYSCALL=y
2423
CONFIG_EMBEDDED=y
2524
# CONFIG_COMPAT_BRK is not set
2625
CONFIG_PROFILING=y

arch/arm/configs/keystone_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_CGROUP_CPUACCT=y
1111
CONFIG_CGROUP_SCHED=y
1212
CONFIG_BLK_CGROUP=y
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_SYSCTL_SYSCALL=y
1514
CONFIG_KALLSYMS_ALL=y
1615
# CONFIG_ELF_CORE is not set
1716
# CONFIG_BASE_FULL is not set

arch/arm/configs/lpc32xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_SYSFS_DEPRECATED=y
99
CONFIG_SYSFS_DEPRECATED_V2=y
1010
CONFIG_BLK_DEV_INITRD=y
1111
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
12-
CONFIG_SYSCTL_SYSCALL=y
1312
CONFIG_EMBEDDED=y
1413
CONFIG_SLAB=y
1514
# CONFIG_ARCH_MULTI_V7 is not set

arch/arm/configs/moxart_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CONFIG_SYSVIPC=y
44
CONFIG_NO_HZ=y
55
CONFIG_IKCONFIG=y
66
CONFIG_IKCONFIG_PROC=y
7-
CONFIG_SYSCTL_SYSCALL=y
87
# CONFIG_ELF_CORE is not set
98
# CONFIG_BASE_FULL is not set
109
# CONFIG_SIGNALFD is not set

arch/arm/configs/qcom_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CONFIG_IKCONFIG=y
55
CONFIG_IKCONFIG_PROC=y
66
CONFIG_CGROUPS=y
77
CONFIG_BLK_DEV_INITRD=y
8-
CONFIG_SYSCTL_SYSCALL=y
98
CONFIG_KALLSYMS_ALL=y
109
CONFIG_EMBEDDED=y
1110
# CONFIG_SLUB_DEBUG is not set

arch/arm/configs/zx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_RT_GROUP_SCHED=y
1111
CONFIG_NAMESPACES=y
1212
CONFIG_USER_NS=y
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_SYSCTL_SYSCALL=y
1514
CONFIG_KALLSYMS_ALL=y
1615
CONFIG_EMBEDDED=y
1716
CONFIG_PERF_EVENTS=y

arch/m68k/configs/m5475evb_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# CONFIG_SWAP is not set
22
CONFIG_LOG_BUF_SHIFT=14
3-
CONFIG_SYSCTL_SYSCALL=y
43
# CONFIG_KALLSYMS is not set
54
# CONFIG_FUTEX is not set
65
# CONFIG_EPOLL is not set

arch/mips/configs/ci20_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CONFIG_CGROUP_CPUACCT=y
1717
CONFIG_NAMESPACES=y
1818
CONFIG_USER_NS=y
1919
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
20-
CONFIG_SYSCTL_SYSCALL=y
2120
CONFIG_KALLSYMS_ALL=y
2221
CONFIG_EMBEDDED=y
2322
# CONFIG_VM_EVENT_COUNTERS is not set

0 commit comments

Comments
 (0)