-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch sshfs mount options -o allow_root
to -o allow_other
#247
Conversation
f63268a
to
20fde60
Compare
@AkihiroSuda can you have a review with this? Thanks |
pkg/hostagent/mount.go
Outdated
@@ -48,7 +48,7 @@ func (a *HostAgent) setupMount(ctx context.Context, m limayaml.Mount) (*mount, e | |||
RemotePath: expanded, | |||
Readonly: !m.Writable, | |||
// NOTE: allow_root requires "user_allow_other" in /etc/fuse.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment line needs to be updated too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, and seems required to provide a good developer experience.
Please still address the 2 issues mentioned by @AkihiroSuda : the comment and the docs.
0c7057c
to
db3ac78
Compare
Done |
Thanks, but could you squash commits? |
Signed-off-by: Yangyang Zhao <yangyang.zhao@houzz.com>
db3ac78
to
a1eba4f
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
CI tests seems to be failing but not related to this change? definitely saw it passed before the squash |
There is some flakiness in the tests that is still unaddressed. I've retriggered the tests to give them another chance... 😄 |
limactl start by default uses
-o allow_root
to mount macbook host directories into lima host.When creating some containers that runs applications using user other than
root
- for example, Apache2 running inside our dev-docker container withwww-data
user, and use mounted folders as the DocumentRoot, it complains about the missing permissionAnd confirmed by switching to
www-data
user inside thedev-docker
container, it lacks the permission to access the mounted volume.By switching to use
-o allow_other
solves the problem, as verified locally