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

Export rustix::io::proc_self #174

Closed
wants to merge 1 commit into from

Conversation

koute
Copy link

@koute koute commented Jan 17, 2022

No description provided.

@sunfishcode
Copy link
Member

Thanks for the PR! It turns out, it's a goal of rustix's procfs code to avoid following bind mounts on top of procfs, and handing out proc_self handles and having uses open files under it means users could end up following bind mounts. This is something I had already been working on (for /proc/self/maps in my case), so I've now finished my patch and generalized it to /proc/self/pagemap, and it's now posted as #176. With that, you can just call rustix::io::proc_self_pagemap() to read the pagemap file. Does that look like it'll work for you?

@koute
Copy link
Author

koute commented Jan 18, 2022

Yep, that would definitely work! Thanks! 👍

@koute koute closed this Jan 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants