Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3afa1c85 authored by Selfmuser's avatar Selfmuser Committed by Pranav Vashi
Browse files

BACKPORT: seccomp: add filter_count field for KernelSU

KernelSU requires struct seccomp to have atomic_t filter_count ,
but this field is missing on NON-GKI kernels.

Adding the field fixes build errors such as:
error: no member named 'filter_count' in 'struct seccomp'

Reference: https://github.com/tiann/KernelSU/pull/2708


Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent 58f5c1ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@


#include <linux/thread_info.h>
#include <linux/thread_info.h>
#include <asm/seccomp.h>
#include <asm/seccomp.h>
#include <linux/atomic.h>


struct seccomp_filter;
struct seccomp_filter;
/**
/**
@@ -28,6 +29,7 @@ struct seccomp_filter;
struct seccomp {
struct seccomp {
	int mode;
	int mode;
	struct seccomp_filter *filter;
	struct seccomp_filter *filter;
	atomic_t filter_count;
};
};


#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER