Skip to content
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

Add storage permissions to UserDetail #511

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hannesdejager
Copy link
Collaborator

This extends the UserDetail trait with a storage_permissions method that allow storage back-ends to limit what a user can do.

Copy link
Contributor

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good to me. BTW some of these permissions don't correspond 1:1 to Capsicum rights. For example, GET and LIST would both require CAP_READ but nothing else. So the storage backend itself will also have to validate rights. But it would have to do that anyway, if we want the rights to be enforced on !FreeBSD.

Do you want a permission like STAT that allows the SIZE and MDTM commands? Or should they come along with LIST?

This extends the UserDetail trait with a storage_permissions
method that allow storage back-ends to limit what a user can
do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants