Skip to content

Use the trait instead of bare process_vm_readv #32

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

romank-msft
Copy link

The process_vm_readv syscall might not be available on some systems due to the age or being disabled in the kernel configuration. The get_va_regions function uses it unconditionally.

Use the ReadProcessMmeory trait instead to abstract these deatils away and fix older systems and systems with a custom kernel configurations disabling the process_vm_readv call.

The `process_vm_readv` syscall might not be available on some
systems due to the age or being disabled in the kernel
configuration. The `get_va_regions` function uses it without
unconditionally.

Use the `ReadProcessMmeory` trait instead to abstract these
deatils away and fix older systems and systems with a custom
kernel configurations disabling the `process_vm_readv` call.
@chris-oo chris-oo requested a review from tjones60 January 29, 2025 19:11
@chris-oo chris-oo self-assigned this Jan 29, 2025
@chris-oo chris-oo requested a review from smalis-msft January 29, 2025 19:11
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