diff options
author | Nick Kralevich <nnk@google.com> | 2015-02-03 11:27:25 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-02-03 12:10:30 -0800 |
commit | 00490ae3f351e07ed4cc2a94b11cba6a22f37311 (patch) | |
tree | ad09d82701fd1d9cdf44231d8b8789007aa5d8d9 /libc/arch-mips/syscalls/___fchmod.S | |
parent | d57bf449fe6c2dcf35d90d6e4098038ac8a24ecb (diff) | |
download | android_bionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.tar.gz android_bionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.tar.bz2 android_bionic-00490ae3f351e07ed4cc2a94b11cba6a22f37311.zip |
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-mips/syscalls/___fchmod.S')
-rw-r--r-- | libc/arch-mips/syscalls/___fchmod.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/arch-mips/syscalls/___fchmod.S b/libc/arch-mips/syscalls/___fchmod.S new file mode 100644 index 000000000..ac102ec93 --- /dev/null +++ b/libc/arch-mips/syscalls/___fchmod.S @@ -0,0 +1,20 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(___fchmod) + .set noreorder + .cpload t9 + li v0, __NR_fchmod + syscall + bnez a3, 1f + move a0, v0 + j ra + nop +1: + la t9,__set_errno_internal + j t9 + nop + .set reorder +END(___fchmod) +.hidden ___fchmod |