-
Notifications
You must be signed in to change notification settings - Fork 253
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
unix domain sockets are created with the wrong owner #64
Comments
Looks like a bug in gocryptfs. Thanks for the report.
|
I was just doing some more testing and it appears that this issue does not only affect unix domain sockets, it also affects all other special file types: character devices, block devices, pipes, and even symlinks. |
rfjakob
added a commit
that referenced
this issue
Nov 28, 2016
rfjakob
added a commit
that referenced
this issue
Nov 28, 2016
It now works like a charm. Thanks for the quick fix. |
Thanks for testing! Closing the ticket. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suppose that you are running
gocryptfs
as root with the-allow_other
option. Then if a non-root user creates a (regular) file in thegocryptfs
, it will be owned by that user. But that doesn't seem to happen with unix domain sockets, they are instead always owned by root.Here's how to reproduce this (with the help of
socat
):As root, run the following:
Then as a non-root user run this:
You can check now that the socket
/tmp/gocryptfs-sock-test/test.sock
will be owned by root.encfs
with the--public
option, doesn't seem to have that problem:The text was updated successfully, but these errors were encountered: