[Toybox] [PATCH] xabspath: use O_PATH.

Rob Landley rob at landley.net
Tue Mar 26 19:36:38 PDT 2019


On 3/26/19 4:56 PM, enh via Toybox wrote:
> 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.

When I first wrote that plumbing O_PATH wasn't in the 7 year rule (added by
kernel commit 1abf0c718f15 in 2011 and took a while to diffuse into libc in
distros), the kernel's well past and Ubuntu 14.04 is the oldest build
environment I've been regression testing on recently, so... :)

Rob



More information about the Toybox mailing list