Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Details
- Reviewers
sjg stevek kib - Group Reviewers
Klara - Commits
- rGe81d55b43948: tarfs: Support tar files which include file modes with permissions.
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 50282 Build 47174: arc lint + arc unit
Event Timeline
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
520 |
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
523 | I'm still not sure what the intention is to just make it user-readable. I think you should just be able to do: if (num & ~ALLPERMS != 0) { TARFS_DPF(ALLOC, "%s: invalid file mode at %zu\n", __func__, TARFS_BLOCKSIZE * (blknum - 1)); } mode = num & ALLPERMS; |
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
523 | Also, it would be good in the log message to print the mode value that you did get. |
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
523 | It is extra annoying when untarring results in weird permissions. Having it auto-corrected at least for tarfs so that root is not needed to read weird archives is only good IMO. |
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
523 | I'd argue that you shouldn't be mounting “weird archives” and if you do (which requires root privileges) and get unexpected results you can simply inspect the tar file using... tar. |
sys/fs/tarfs/tarfs_vfsops.c | ||
---|---|---|
523 | I agree; forcing just S_IRUSR is useless. |