|
@@ -38,6 +38,7 @@
|
|
|
#include <linux/filter.h>
|
|
|
#include <linux/reciprocal_div.h>
|
|
|
#include <linux/ratelimit.h>
|
|
|
+#include <linux/seccomp.h>
|
|
|
|
|
|
/* No hurry in this branch
|
|
|
*
|
|
@@ -352,6 +353,11 @@ load_b:
|
|
|
A = 0;
|
|
|
continue;
|
|
|
}
|
|
|
+#ifdef CONFIG_SECCOMP_FILTER
|
|
|
+ case BPF_S_ANC_SECCOMP_LD_W:
|
|
|
+ A = seccomp_bpf_load(fentry->k);
|
|
|
+ continue;
|
|
|
+#endif
|
|
|
default:
|
|
|
WARN_RATELIMIT(1, "Unknown code:%u jt:%u tf:%u k:%u\n",
|
|
|
fentry->code, fentry->jt,
|