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

Device files are not supported #87

Open
ebkalderon opened this issue Dec 3, 2019 · 0 comments
Open

Device files are not supported #87

ebkalderon opened this issue Dec 3, 2019 · 0 comments

Comments

@ebkalderon
Copy link

It appears that reading from and writing to device files is not supported via sandboxfs and osxfuse on macOS. Given the example command below:

sandboxfs --mapping ro:/:/ --mapping rw:/dev:/dev ./mnt

The following attempts to write to any device file in the mounted /dev subdirectory fail with the following error:

$ cd mnt
$ echo hi > ./dev/null
-bash: echo: write error: Operation not permitted
$ head -1 < ./dev/random
head: Error reading stdin

I have not verified if the same limitation exists on Linux as well at the time of writing, but it nevertheless would be quite nice if sandboxfs supported binaries or scripts which wrote to /dev/null if the user requested that the device file be mounted, for example.

@ebkalderon ebkalderon changed the title Device files not supported Device files are not supported Dec 3, 2019
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