We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
trying to mark mprotect as not avail. ubuntu 22.04, x86-64. below will segfault.
#include <libsyscall_intercept_hook_point.h> #include <syscall.h> #include <errno.h> static int hook(long syscall_number, long arg0, long arg1, long arg2, long arg3, long arg4, long arg5, long *result) { if (syscall_number == SYS_mprotect) { *result = -ENOTSUP; return 0; } else { return 1; } } static __attribute__((constructor)) void init(void) { intercept_hook_point = hook; }
The text was updated successfully, but these errors were encountered:
Can you share a backtrace if possible?
Sorry, something went wrong.
No branches or pull requests
trying to mark mprotect as not avail.
ubuntu 22.04, x86-64.
below will segfault.
The text was updated successfully, but these errors were encountered: