Commit d493070
committed
Fix NFS get_file and put_file auth using wrong handle during path traversal
get_file() and put_file() called update_auth(mount_fh) in their traversal
loops, always setting credentials based on the root/mount handle (uid=0).
With root_squash, this gets squashed to nobody, causing lookups to fail on
non-world-traversable directories. Changed to update_auth(curr_fh) to match
the correct behavior already used in ls().1 parent 07447a0 commit d493070
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
0 commit comments