OSDN Git Service

Ensure raw fchmod/fchmodat syscalls are hidden.
authorNick Kralevich <nnk@google.com>
Tue, 3 Feb 2015 19:27:25 +0000 (11:27 -0800)
committerNick Kralevich <nnk@google.com>
Tue, 3 Feb 2015 20:10:30 +0000 (12:10 -0800)
commit00490ae3f351e07ed4cc2a94b11cba6a22f37311
treead09d82701fd1d9cdf44231d8b8789007aa5d8d9
parentd57bf449fe6c2dcf35d90d6e4098038ac8a24ecb
Ensure raw fchmod/fchmodat syscalls are hidden.

In https://android-review.googlesource.com/#/c/127908/5/libc/SYSCALLS.TXT@116
Elliott said:

  for LP64 these will be hidden. for LP32 we were cowards and left
  them all public for compatibility (though i don't think we ever
  dremeled to see whether it was needed). we don't have an easy
  way to recognize additions, though, so we can't prevent adding
  new turds.

Add a mechanism to prevent the adding of new turds, and use that
mechanism on the fchmod/fchmodat system calls.

Bug: 19233951
Change-Id: I98f98345970b631a379f348df57858f9fc3d57c0
16 files changed:
libc/SYSCALLS.TXT
libc/arch-arm/syscalls/___fchmod.S [moved from libc/arch-arm/syscalls/__fchmod.S with 84% similarity]
libc/arch-arm/syscalls/___fchmodat.S [moved from libc/arch-arm/syscalls/__fchmodat.S with 82% similarity]
libc/arch-arm64/syscalls/___fchmod.S [moved from libc/arch-arm64/syscalls/__fchmod.S with 81% similarity]
libc/arch-arm64/syscalls/___fchmodat.S [moved from libc/arch-arm64/syscalls/__fchmodat.S with 80% similarity]
libc/arch-mips/syscalls/___fchmod.S [moved from libc/arch-mips/syscalls/__fchmod.S with 84% similarity]
libc/arch-mips/syscalls/___fchmodat.S [moved from libc/arch-mips/syscalls/__fchmodat.S with 82% similarity]
libc/arch-mips64/syscalls/___fchmod.S [moved from libc/arch-mips64/syscalls/__fchmod.S with 87% similarity]
libc/arch-mips64/syscalls/___fchmodat.S [moved from libc/arch-mips64/syscalls/__fchmodat.S with 86% similarity]
libc/arch-x86/syscalls/___fchmod.S [moved from libc/arch-x86/syscalls/__fchmod.S with 91% similarity]
libc/arch-x86/syscalls/___fchmodat.S [moved from libc/arch-x86/syscalls/__fchmodat.S with 91% similarity]
libc/arch-x86_64/syscalls/___fchmod.S [moved from libc/arch-x86_64/syscalls/__fchmod.S with 83% similarity]
libc/arch-x86_64/syscalls/___fchmodat.S [moved from libc/arch-x86_64/syscalls/__fchmodat.S with 82% similarity]
libc/bionic/fchmod.cpp
libc/bionic/fchmodat.cpp
libc/tools/gensyscalls.py