Skip to content

Mapping to unix accounts when using POSIX backend #428

Answered by benmcclelland
kyleaupton asked this question in Q&A
Discussion options

You must be logged in to vote

@kyleaupton Thanks for checking out the project!

The difficulty with the posix permissions is that ideally we would want the filesystem to enforce the permissions/ACLs. And in order to do that we would need to set the effective userid/groupid to that user for any filesystem access. Normally this would be done with seteuid()/setegid() to set the effective uid/gid for that thread. But with Go, the goroutines are not 1:1 with OS threads, but instead lightweight routines scheduled across available threads. There are ways to lock a single goroutine to an os thread, but then this starts to have implications on the scalability of the service if each incoming request needs to fork a new thread. S…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kyleaupton
Comment options

You must be logged in to vote
4 replies
@kyleaupton
Comment options

@benmcclelland
Comment options

@kyleaupton
Comment options

@benmcclelland
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants