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

MapOpenFailed(2) when SYSTEM user open shared memory created by common user #97

Open
21pages opened this issue Nov 3, 2022 · 2 comments

Comments

@21pages
Copy link

21pages commented Nov 3, 2022

error line

@21pages
Copy link
Author

21pages commented Nov 3, 2022

It's created by this crate, but need to set allow_raw=true, maybe not properly. If set, it can work

@einar-itm
Copy link

Not sure if this is related, but I got the same error because open_mapping assumes write permissions in the file-system when reusing an existing mapping. I am not sure if this counts as bug report or a feature request.

OFlag::O_RDWR, //Open read write

Workaround: chmod u+w /dev/shmem/my_shmem

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

2 participants