platform_bionic/libc/arch-arm
Nick Kralevich 2825f10b7f libc: Add O_PATH support for fgetxattr / fsetxattr
Support O_PATH file descriptors when handling fgetxattr and fsetxattr.
This avoids requiring file read access to pull extended attributes.

This is needed to support O_PATH file descriptors when calling
SELinux's fgetfilecon() call. In particular, this allows the querying
and setting of SELinux file context by using something like the following
code:

  int dirfd = open("/path/to/dir", O_DIRECTORY);
  int fd = openat(dirfd, "file", O_PATH | O_NOFOLLOW);
  char *context;
  fgetfilecon(fd, &context);

This change was motivated by a comment in
https://android-review.googlesource.com/#/c/152680/1/toys/posix/ls.c

Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf
2015-06-01 15:51:56 -07:00
..
bionic Simplify three copyright headers. 2015-05-12 10:10:01 -07:00
cortex-a7 libc/arm: add cortex-a7 cpu variant 2013-03-23 01:38:22 -07:00
cortex-a8 libc/arm: add cortex-a8 cpu variant 2013-05-15 20:13:28 -07:00
cortex-a9 Use unified syntax to compile with both llvm and gcc. 2015-05-11 17:15:03 -07:00
cortex-a15 Use assembly memmove for all arm32 processors. 2015-04-08 16:53:16 -07:00
denver Move the generic arm memcmp.S into the generic directory. 2014-12-15 11:06:34 -08:00
generic Use unified syntax to compile with both llvm and gcc. 2015-05-11 17:15:03 -07:00
include/machine Add ARM_IRELATIVE relocation 2015-01-08 22:22:27 -08:00
krait Use unified syntax to compile with both llvm and gcc. 2015-05-11 17:15:03 -07:00
syscalls libc: Add O_PATH support for fgetxattr / fsetxattr 2015-06-01 15:51:56 -07:00
arm.mk Stop libc from cross-referencing unwind symbols 2015-04-07 01:48:35 +00:00