Skip to content

Commit

Permalink
seccomp: Omit unneeded symbol pointers on Linux 5.9+
Browse files Browse the repository at this point in the history
Completes 38b3b11
  • Loading branch information
solardiz committed Aug 11, 2024
1 parent 38b3b11 commit de5bdc2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/p_lkrg_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,10 @@ typedef struct _p_lkrg_global_symbols_structure {
#endif
#endif
int (*p___kernel_text_address)(unsigned long p_addr);
#if defined(CONFIG_SECCOMP)
#if defined(CONFIG_SECCOMP) && LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
void (*p_get_seccomp_filter)(struct task_struct *p_task);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
void (*p_put_seccomp_filter)(struct seccomp_filter *p_filter);
#else
void (*p_put_seccomp_filter)(struct task_struct *p_task);
#endif
#endif
#ifdef CONFIG_SECURITY_SELINUX
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
int *p_selinux_enabled;
Expand Down

0 comments on commit de5bdc2

Please sign in to comment.