It is currently allowed to fchownat(2), fchmodat(2), fchflagsat(2), utimensat(2), fstatat(2), and linkat(2).
For linkat(2), PRIV_VFS_FHOPEN privilege is required to exercise the flag. It allows to link any open file.
Differential D29111
Add AT_EMPTY_PATH kib on Mar 7 2021, 2:53 PM. Authored by Tags None Referenced Files
Subscribers
Details It is currently allowed to fchownat(2), fchmodat(2), fchflagsat(2), utimensat(2), fstatat(2), and linkat(2). For linkat(2), PRIV_VFS_FHOPEN privilege is required to exercise the flag. It allows to link any open file.
Diff Detail
Event TimelineComment Actions Seems to work perfectly for at least fstatat(2) and fchownat(2). Thanks for working on it!
Comment Actions For fstatat(2) yes, but note linkat(2). The real user is linuxolator, anyway. Trasz@ needs this to make some linux program work.
Comment Actions I see, there is some context in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197778 Comment Actions Also, given how many Linux apps started to use those (visible as a number of regressions in Ubuntu Focal compared to Ubuntu Bionic), it might soon come really handy when porting software. Comment Actions
Maybe happening via glibc though, not explicit AT_EMPTY_PATH in src?
Comment Actions I rebased O_PATH branch onto AT_EMPTY_PATH, so for now I will no longer update these reviews.
|