Switch kretprobe to heap

Co-authored-by: Ylarod <me@ylarod.cn>
This commit is contained in:
ShirkNeko
2025-11-07 19:03:05 +08:00
parent c876d60e53
commit 74f24bafed
2 changed files with 63 additions and 48 deletions

View File

@@ -217,7 +217,11 @@ static int get_object(char *buf, char __user *user_object, size_t buf_sz,
return 0;
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0))
extern int avc_ss_reset(u32 seqno);
#else
extern int avc_ss_reset(struct selinux_avc *avc, u32 seqno);
#endif
// reset avc cache table, otherwise the new rules will not take effect if already denied
static void reset_avc_cache(void)
{