fs, kernel: permit disabling the uselib syscall
authorJosh Triplett <josh@joshtriplett.org>
Thu, 3 Apr 2014 21:48:27 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:05 +0000 (16:21 -0700)
commit69369a7003735d0d8ef22097e27a55a8bad9557a
treeb7638899a8e81fc18a497791685f1b571d733896
parent8f6c5ffc8987f4f5b5a3e9d557d94bbf3a9bf216
fs, kernel: permit disabling the uselib syscall

uselib hasn't been used since libc5; glibc does not use it.  Support
turning it off.

When disabled, also omit the load_elf_library implementation from
binfmt_elf.c, which only uselib invokes.

bloat-o-meter:
add/remove: 0/4 grow/shrink: 0/1 up/down: 0/-785 (-785)
function                                     old     new   delta
padzero                                       39      36      -3
uselib_flags                                  20       -     -20
sys_uselib                                   168       -    -168
SyS_uselib                                   168       -    -168
load_elf_library                             426       -    -426

The new CONFIG_USELIB defaults to `y'.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_elf.c
fs/exec.c
init/Kconfig
kernel/sys_ni.c