Skip to content

Use process_vm_readv/process_vm_writevinstead of opening /proc/<pid>/mem? #1937

@rocallahan

Description

@rocallahan

These are available in Linux 3.2 so it would be no trouble to depend on them. I think this would simplify the code a bit since we might be able to use that syscall in all situations and not have to reopen the mem-fd or worry about the state where it's not open.

My only concern is whether there are cases where we are ptracing a process but those syscalls don't work due to permissions. Might need to experiment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions