[Toybox] [PATCH] xabspath: use O_PATH.

enh enh at google.com
Tue Mar 26 14:56:55 PDT 2019


SELinux on Android is unhappy if you try to read "/":

  avc: denied { read } for name="/" dev="dm-3" ino=2
scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0
tclass=dir permissive=0

O_PATH seems more intention-revealing anyway.
---
 lib/xwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xabspath-use-O_PATH.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190326/5cb65c1d/attachment-0002.bin>


More information about the Toybox mailing list