Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Meaning of change-file-permissions-at? #37

Closed
bjorn3 opened this issue Dec 22, 2022 · 2 comments
Closed

Meaning of change-file-permissions-at? #37

bjorn3 opened this issue Dec 22, 2022 · 2 comments

Comments

@bjorn3
Copy link

bjorn3 commented Dec 22, 2022

What is the meaning of change-file-permissions-at? Does it only affect the permissions for the owner, or for everyone? If the later could you add a method to at least allow revoking read permission for everyone other than the file owner? That is pretty important for sensitive data like private keys.

@sunfishcode
Copy link
Member

The official document for this function is here. It is admittedly vague, so I filed WebAssembly/wasi-filesystem#74 about documenting it.

When I proposed this function, I was unsure about whether it would make sense to support anything other than global permissions, since WASI has no concept of a "user", however thinking through it now, I think there is a way in which it makes sense. We should document that the actual protection provided may vary widely, including offering no protection at all on some host/filesystems, but nevertheless, the feature may be useful.

I filed WebAssembly/wasi-filesystem#75 to track this.

@bjorn3
Copy link
Author

bjorn3 commented Dec 23, 2022

Closing in favor of WebAssembly/wasi-filesystem#75.

@bjorn3 bjorn3 closed this as completed Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants