summaryrefslogtreecommitdiff
path: root/src/ptrace-region-rw.c
blob: 02d6b0c5043c33b6bd91a146fcda8a29f3d788d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "cli/cli.h"
#include "mem/io.h"

// This region-rw uses ptrace
// This works with older kernels, but it also ensures non racy read/writes, as it stops the process.
// It's recommended to `setcap cap_sys_ptrace=eip ptrace-region-rw` to run this tool without sudo

int
main(int argc, const char *argv[])
{
   return proc_region_rw(argc, argv, mem_io_ptrace_init);
}