James Antill <[EMAIL PROTECTED]> writes: > So, personally, I'd just have something like: > > #ifndef PTRACE_O_TRACEFORK > # define PTRACE_O_TRACEFORK 0x00000002 /* from kernel-2.6.x */ > #endif > > ...and assuming you handle the error return from PTRACE_SETOPTIONS, it > should mostly just work on all relevant systems.
The file gdb/linux_nat.c shows that GDB uses this trick, and many other useful ones. Time to cut-and-paste. John -- Linux-audit mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-audit
