mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #107] chroot catch-22 #65
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ProbablyRusty on GitHub (Jan 21, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/107
I am trying to implement a chroot jail backed by s3fs.
But, chroot requires that the parent directory be owned by root:root and not world writable.
If I use
-o allow_other, then the permissions on the s3fs mnt directory is root:root 777.If I don't use
-o allow_otherthen the permissions on the s3fs mnt directory is root:root 700.What I actually need in order to make chroot not reject the path is root:root 775.
Manually trying to chmod on the s3fs mnt directory doesn't work either:
Any way to do this?
@ProbablyRusty commented on GitHub (Jan 21, 2015):
I patched line 3386 of s3fs.cpp from:
to:
...and I believe it is working fine. Perhaps this could be added as an option?
@ggtakec commented on GitHub (Feb 7, 2015):
Hi, consultantRR
Thanks for pull request.
After I see your code(idea), but I think that we should make new option like unmask for only mount point.
So that, s3fs can set any mode for mount point directory.
Then I'm going to update codes as soon as possible by your source code to reference.
Thanks in advance for your help.
@ggtakec commented on GitHub (Feb 7, 2015):
I merged #119.
It is added mp_umask option like umask, for mount point permission.
Thanks very much.
Regards,