aboutgitcodelistschat:MatrixIRC
path: root/common/common.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-30 11:02:47 +0200
committerAlice Frosi <afrosi@redhat.com>2023-03-30 11:07:12 +0200
commitfa00aa6b11a9a773bdb0b11c306d2e6936ba5862 (patch)
tree8852eebf58339d9bbce563022a754d4204411c26 /common/common.h
parent6a850dfce709751292a136d76060c97b57435ef1 (diff)
downloadseitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar.gz
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar.bz2
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar.lz
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar.xz
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.tar.zst
seitan-fa00aa6b11a9a773bdb0b11c306d2e6936ba5862.zip
Create common function to install the BPF filter
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/common.h b/common/common.h
index 487032b..780f756 100644
--- a/common/common.h
+++ b/common/common.h
@@ -1,6 +1,8 @@
#ifndef COMMON_H_
#define COMMON_H_
-int find_fd_seccomp_notifier(const char *pid);
+#include <linux/filter.h>
+int find_fd_seccomp_notifier(const char *pid);
+int install_filter(struct sock_filter *filter, unsigned short len);
#endif