Skip to content

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