summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm64
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-02-03 11:27:25 -0800
committerNick Kralevich <nnk@google.com>2015-02-03 12:10:30 -0800
commit00490ae3f351e07ed4cc2a94b11cba6a22f37311 (patch)
treead09d82701fd1d9cdf44231d8b8789007aa5d8d9 /libc/arch-arm64
parentd57bf449fe6c2dcf35d90d6e4098038ac8a24ecb (diff)
downloadbionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.zip
bionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.tar.gz
bionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.tar.bz2
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
Diffstat (limited to 'libc/arch-arm64')
-rw-r--r--libc/arch-arm64/syscalls/___fchmod.S (renamed from libc/arch-arm64/syscalls/__fchmod.S)6
-rw-r--r--libc/arch-arm64/syscalls/___fchmodat.S (renamed from libc/arch-arm64/syscalls/__fchmodat.S)6
2 files changed, 6 insertions, 6 deletions
diff --git a/libc/arch-arm64/syscalls/__fchmod.S b/libc/arch-arm64/syscalls/___fchmod.S
index 05c67fc..a143c65 100644
--- a/libc/arch-arm64/syscalls/__fchmod.S
+++ b/libc/arch-arm64/syscalls/___fchmod.S
@@ -2,7 +2,7 @@
#include <private/bionic_asm.h>
-ENTRY(__fchmod)
+ENTRY(___fchmod)
mov x8, __NR_fchmod
svc #0
@@ -11,5 +11,5 @@ ENTRY(__fchmod)
b.hi __set_errno_internal
ret
-END(__fchmod)
-.hidden __fchmod
+END(___fchmod)
+.hidden ___fchmod
diff --git a/libc/arch-arm64/syscalls/__fchmodat.S b/libc/arch-arm64/syscalls/___fchmodat.S
index 2406ea8..1ab3736 100644
--- a/libc/arch-arm64/syscalls/__fchmodat.S
+++ b/libc/arch-arm64/syscalls/___fchmodat.S
@@ -2,7 +2,7 @@
#include <private/bionic_asm.h>
-ENTRY(__fchmodat)
+ENTRY(___fchmodat)
mov x8, __NR_fchmodat
svc #0
@@ -11,5 +11,5 @@ ENTRY(__fchmodat)
b.hi __set_errno_internal
ret
-END(__fchmodat)
-.hidden __fchmodat
+END(___fchmodat)
+.hidden ___fchmodat