Fixes to d_path: Respin
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | Fix __d_path() for lazy unmounts and make it unambiguousfs/ | +98 | 1 reply | |
| 2/7 | Make d_path() consistent across mount operationsfs/ | +8 | 0 replies | |
| 3/7 | Add d_namespace_path() to compute namespace relative pathnamesfs/ fs/ include/ +1 more | +34 | 2 replies | |
| 4/7 | Make getcwd() only return valid pathsfs/ | +3 | 0 replies | |
| 5/7 | Remove duplicate proc codefs/ | +15 | 0 replies | |
| 6/7 | Filter out disconnected paths from /proc/mountsfs/ fs/ | +30 | 1 reply | |
| 7/7 | Distinguish between connected and disconnected paths in d_path()fs/ | +4 | 0 replies |
Reviews trailers per patch
2 of 7 patches have a Reviewed-by or Acked-by.
| Patch | John Johansen | Alan Cox |
|---|---|---|
| 1/7 | ||
| 2/7 | ||
| 3/7 | R-b | |
| 4/7 | ||
| 5/7 | ||
| 6/7 | A-b | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [d_path 0/7] Fixes to d_path: Respin
Quoted 4 lines · Alan Cox
Can you prove no existing application on the planet relies on the existing behaviour ? Actually more limited but sane as a test would be "Can you prove that the glibc behaviour visible to applications does not change"
As far as I can see, glibc internally looks at /proc/mounts (or else mtab) to find out where tmpfs is mounted for opening files there, and to look up filesystem information for statfs(), while accessing that path, too. Fstatfs() also looks into the same files, but it only matches by filesystem type, so this is only a very unreliable heuristic, anyway.
So judging from that, glibc users should be fine.
Quoted 3 lines
I disagree - firstly because of not breaking stuff, and secondly because it separates two discussions - merging AppArmor being one of them , and the correct behaviour for getcwd &
/proc/mountsbeing the other.
I agree with the separation of discussion argument. Here are patches that change getcwd() and /proc/mounts independent of the changes that AppArmor depends on.
Thanks for your feedback!
Andreas