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

Support for user-only permissions #75

Open
sunfishcode opened this issue Dec 22, 2022 · 0 comments
Open

Support for user-only permissions #75

sunfishcode opened this issue Dec 22, 2022 · 0 comments

Comments

@sunfishcode
Copy link
Member

As discussed in #74, change-file-permissions-at is currently meant to change all the file permissions. That's enough for the use cases that motivated it. However, bytecodealliance/preview2-prototyping#37 asks if it's possible to support more fine-grained permissions, in particular changing a file to be only user-readable.

This is a little subtle because WASI has no concept of a "user", and two instances running within the same host "user" are still expected to be sandboxed from each other, and "user" permissions will be accessible to both. Also, some filesystems won't support user permissions, but some filesystems won't support any kind of permissions at all. We should document that the actual protection offered by this function entirely depends on the underlying filesystem. Nevertheless, there are use cases where this functionality may be useful.

The main thing this needs is a proposal for an API that would provide the needed functionality and a sketch of what it would do on Windows.

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

No branches or pull requests

1 participant