mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[PATCH] tiny: Make *[ug]id16 support optional
Configurable 16-bit UID and friends support This allows turning off the legacy 16 bit UID interfaces on embedded platforms. text data bss dec hex filename 3330172 529036 190556 4049764 3dcb64 vmlinux-baseline 3328268 529040 190556 4047864 3dc3f8 vmlinux From: Adrian Bunk <bunk@stusta.de> UID16 was accidentially disabled for !EMBEDDED. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
22c4e3084e
commit
e585e47031
19 changed files with 28 additions and 65 deletions
|
@ -18,9 +18,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,6 @@ config MCA
|
||||||
<file:Documentation/mca.txt> (and especially the web page given
|
<file:Documentation/mca.txt> (and especially the web page given
|
||||||
there) before attempting to build an MCA bus kernel.
|
there) before attempting to build an MCA bus kernel.
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -34,10 +34,6 @@ config FORCE_MAX_ZONEORDER
|
||||||
int
|
int
|
||||||
default 9
|
default 9
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -9,10 +9,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -21,10 +21,6 @@ config FPU
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -29,10 +29,6 @@ config MMU
|
||||||
config SBUS
|
config SBUS
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GENERIC_ISA_DMA
|
config GENERIC_ISA_DMA
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -10,10 +10,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -17,10 +17,6 @@ config FPU
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -19,9 +19,6 @@ config MMU
|
||||||
config STACK_GROWSUP
|
config STACK_GROWSUP
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
|
|
||||||
config GENERIC_HARDIRQS
|
config GENERIC_HARDIRQS
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -8,9 +8,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
|
|
||||||
config GENERIC_HARDIRQS
|
config GENERIC_HARDIRQS
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -14,10 +14,6 @@ config SUPERH
|
||||||
gaming console. The SuperH port has a home page at
|
gaming console. The SuperH port has a home page at
|
||||||
<http://www.linux-sh.org/>.
|
<http://www.linux-sh.org/>.
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -9,10 +9,6 @@ config MMU
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config HIGHMEM
|
config HIGHMEM
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -309,11 +309,6 @@ config COMPAT
|
||||||
depends on SPARC32_COMPAT
|
depends on SPARC32_COMPAT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
depends on SPARC32_COMPAT
|
|
||||||
default y
|
|
||||||
|
|
||||||
config BINFMT_ELF32
|
config BINFMT_ELF32
|
||||||
tristate "Kernel support for 32-bit ELF binaries"
|
tristate "Kernel support for 32-bit ELF binaries"
|
||||||
depends on SPARC32_COMPAT
|
depends on SPARC32_COMPAT
|
||||||
|
|
|
@ -22,10 +22,6 @@ config SBUS
|
||||||
config PCI
|
config PCI
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GENERIC_CALIBRATE_DELAY
|
config GENERIC_CALIBRATE_DELAY
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -10,9 +10,6 @@ mainmenu "uClinux/v850 (w/o MMU) Kernel Configuration"
|
||||||
config MMU
|
config MMU
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -542,11 +542,6 @@ config SYSVIPC_COMPAT
|
||||||
depends on COMPAT && SYSVIPC
|
depends on COMPAT && SYSVIPC
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UID16
|
|
||||||
bool
|
|
||||||
depends on IA32_EMULATION
|
|
||||||
default y
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
source "net/Kconfig"
|
source "net/Kconfig"
|
||||||
|
|
|
@ -228,6 +228,15 @@ config CPUSETS
|
||||||
|
|
||||||
source "usr/Kconfig"
|
source "usr/Kconfig"
|
||||||
|
|
||||||
|
config UID16
|
||||||
|
bool "Enable 16-bit UID system calls" if EMBEDDED
|
||||||
|
depends !ALPHA && !PPC && !PPC64 && !PARISC && !V850 && !ARCH_S390X
|
||||||
|
depends !X86_64 || IA32_EMULATION
|
||||||
|
depends !SPARC64 || SPARC32_COMPAT
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This enables the legacy 16-bit UID syscall wrappers.
|
||||||
|
|
||||||
config CC_OPTIMIZE_FOR_SIZE
|
config CC_OPTIMIZE_FOR_SIZE
|
||||||
bool "Optimize for size (Look out for broken compilers!)"
|
bool "Optimize for size (Look out for broken compilers!)"
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -83,6 +83,25 @@ cond_syscall(sys_inotify_init);
|
||||||
cond_syscall(sys_inotify_add_watch);
|
cond_syscall(sys_inotify_add_watch);
|
||||||
cond_syscall(sys_inotify_rm_watch);
|
cond_syscall(sys_inotify_rm_watch);
|
||||||
cond_syscall(sys_migrate_pages);
|
cond_syscall(sys_migrate_pages);
|
||||||
|
cond_syscall(sys_chown16);
|
||||||
|
cond_syscall(sys_fchown16);
|
||||||
|
cond_syscall(sys_getegid16);
|
||||||
|
cond_syscall(sys_geteuid16);
|
||||||
|
cond_syscall(sys_getgid16);
|
||||||
|
cond_syscall(sys_getgroups16);
|
||||||
|
cond_syscall(sys_getresgid16);
|
||||||
|
cond_syscall(sys_getresuid16);
|
||||||
|
cond_syscall(sys_getuid16);
|
||||||
|
cond_syscall(sys_lchown16);
|
||||||
|
cond_syscall(sys_setfsgid16);
|
||||||
|
cond_syscall(sys_setfsuid16);
|
||||||
|
cond_syscall(sys_setgid16);
|
||||||
|
cond_syscall(sys_setgroups16);
|
||||||
|
cond_syscall(sys_setregid16);
|
||||||
|
cond_syscall(sys_setresgid16);
|
||||||
|
cond_syscall(sys_setresuid16);
|
||||||
|
cond_syscall(sys_setreuid16);
|
||||||
|
cond_syscall(sys_setuid16);
|
||||||
|
|
||||||
/* arch-specific weak syscall entries */
|
/* arch-specific weak syscall entries */
|
||||||
cond_syscall(sys_pciconfig_read);
|
cond_syscall(sys_pciconfig_read);
|
||||||
|
|
Loading…
Reference in a new issue