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

MemoryRandomAccessFile doesn't honor file system permissions #640

Open
jamesderlin opened this issue Jun 12, 2020 · 0 comments
Open

MemoryRandomAccessFile doesn't honor file system permissions #640

jamesderlin opened this issue Jun 12, 2020 · 0 comments

Comments

@jamesderlin
Copy link
Contributor

I'm adding a MemoryRandomAccessFile class (PR dart-archive/file.dart#136). The current implementation does not do anything special to honor file system permissions. I have not looked closely at MemoryFile, but I suspect that it doesn't either.

Admittedly, file permissions are not very meaningful for an ephemeral MemoryFileSystem that is local to the running application; anything in it is something that the application put there, so it implicitly has permission to read or write or do whatever it wants.

However, honoring file permissions would improve testing fidelity (i.e., verifying that an application would behave correctly if permission errors are encountered). Note that dart:io currently provides no mechanism to modify permissions (see dart-lang/sdk#15078), so MemoryFileSystem would need to provide its own.

@devoncarew devoncarew transferred this issue from dart-archive/file.dart Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants