diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2006-09-27 04:51:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:19 -0400 |
commit | b89a81712f486e4f7a606987413e387605fdeaf4 (patch) | |
tree | 98702b89a50e927c38f2e31cf824c10d2585722f /arch | |
parent | 571817849c76aabf34d534c905b5e604f2e824c5 (diff) |
[PATCH] sysctl: Allow /proc/sys without sys_sysctl
Since sys_sysctl is deprecated start allow it to be compiled out. This
should catch any remaining user space code that cares, and paves the way
for further sysctl cleanups.
[akpm@osdl.org: If sys_sysctl() is not compiled-in, emit a warning]
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/ia32/sys_ia32.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/linux32.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/sys_ppc32.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/compat_linux.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sparc32.c | 2 | ||||
-rw-r--r-- | arch/x86_64/ia32/sys_ia32.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c index 6aa3c51619ca..bddbd22706ed 100644 --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c | |||
@@ -1942,7 +1942,7 @@ struct sysctl32 { | |||
1942 | unsigned int __unused[4]; | 1942 | unsigned int __unused[4]; |
1943 | }; | 1943 | }; |
1944 | 1944 | ||
1945 | #ifdef CONFIG_SYSCTL | 1945 | #ifdef CONFIG_SYSCTL_SYSCALL |
1946 | asmlinkage long | 1946 | asmlinkage long |
1947 | sys32_sysctl (struct sysctl32 __user *args) | 1947 | sys32_sysctl (struct sysctl32 __user *args) |
1948 | { | 1948 | { |
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index dc500e20cf14..43b1162d714f 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -991,7 +991,7 @@ struct sysctl_args32 | |||
991 | unsigned int __unused[4]; | 991 | unsigned int __unused[4]; |
992 | }; | 992 | }; |
993 | 993 | ||
994 | #ifdef CONFIG_SYSCTL | 994 | #ifdef CONFIG_SYSCTL_SYSCALL |
995 | 995 | ||
996 | asmlinkage long sys32_sysctl(struct sysctl_args32 __user *args) | 996 | asmlinkage long sys32_sysctl(struct sysctl_args32 __user *args) |
997 | { | 997 | { |
@@ -1032,7 +1032,7 @@ asmlinkage long sys32_sysctl(struct sysctl_args32 __user *args) | |||
1032 | return error; | 1032 | return error; |
1033 | } | 1033 | } |
1034 | 1034 | ||
1035 | #endif /* CONFIG_SYSCTL */ | 1035 | #endif /* CONFIG_SYSCTL_SYSCALL */ |
1036 | 1036 | ||
1037 | asmlinkage long sys32_newuname(struct new_utsname __user * name) | 1037 | asmlinkage long sys32_newuname(struct new_utsname __user * name) |
1038 | { | 1038 | { |
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index 2e292863e982..5e391fc25340 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -740,7 +740,7 @@ asmlinkage long compat_sys_umask(u32 mask) | |||
740 | return sys_umask((int)mask); | 740 | return sys_umask((int)mask); |
741 | } | 741 | } |
742 | 742 | ||
743 | #ifdef CONFIG_SYSCTL | 743 | #ifdef CONFIG_SYSCTL_SYSCALL |
744 | struct __sysctl_args32 { | 744 | struct __sysctl_args32 { |
745 | u32 name; | 745 | u32 name; |
746 | int nlen; | 746 | int nlen; |
diff --git a/arch/s390/kernel/compat_linux.c b/arch/s390/kernel/compat_linux.c index 785c9f70ac98..91b2884fa5c4 100644 --- a/arch/s390/kernel/compat_linux.c +++ b/arch/s390/kernel/compat_linux.c | |||
@@ -708,7 +708,7 @@ asmlinkage long sys32_sendfile64(int out_fd, int in_fd, | |||
708 | return ret; | 708 | return ret; |
709 | } | 709 | } |
710 | 710 | ||
711 | #ifdef CONFIG_SYSCTL | 711 | #ifdef CONFIG_SYSCTL_SYSCALL |
712 | struct __sysctl_args32 { | 712 | struct __sysctl_args32 { |
713 | u32 name; | 713 | u32 name; |
714 | int nlen; | 714 | int nlen; |
diff --git a/arch/sparc64/kernel/sys_sparc32.c b/arch/sparc64/kernel/sys_sparc32.c index c88ae23ce812..69444f266e2d 100644 --- a/arch/sparc64/kernel/sys_sparc32.c +++ b/arch/sparc64/kernel/sys_sparc32.c | |||
@@ -1016,7 +1016,7 @@ struct __sysctl_args32 { | |||
1016 | 1016 | ||
1017 | asmlinkage long sys32_sysctl(struct __sysctl_args32 __user *args) | 1017 | asmlinkage long sys32_sysctl(struct __sysctl_args32 __user *args) |
1018 | { | 1018 | { |
1019 | #ifndef CONFIG_SYSCTL | 1019 | #ifndef CONFIG_SYSCTL_SYSCALL |
1020 | return -ENOSYS; | 1020 | return -ENOSYS; |
1021 | #else | 1021 | #else |
1022 | struct __sysctl_args32 tmp; | 1022 | struct __sysctl_args32 tmp; |
diff --git a/arch/x86_64/ia32/sys_ia32.c b/arch/x86_64/ia32/sys_ia32.c index b0e82c7947dc..f280d3665f4b 100644 --- a/arch/x86_64/ia32/sys_ia32.c +++ b/arch/x86_64/ia32/sys_ia32.c | |||
@@ -648,7 +648,7 @@ sys32_pause(void) | |||
648 | } | 648 | } |
649 | 649 | ||
650 | 650 | ||
651 | #ifdef CONFIG_SYSCTL | 651 | #ifdef CONFIG_SYSCTL_SYSCALL |
652 | struct sysctl_ia32 { | 652 | struct sysctl_ia32 { |
653 | unsigned int name; | 653 | unsigned int name; |
654 | int nlen; | 654 | int nlen; |