aboutgitcodelistschat:MatrixIRC
path: root/build.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-23 17:06:00 +0100
committerAlice Frosi <afrosi@redhat.com>2023-03-23 17:16:12 +0100
commit06b0f6d323c396ca1df000af96fdd07cc69b06e0 (patch)
treef3f900d0cd928d6ec2e6d1ce019d87e119998c0c /build.c
parent018da5282e74504c0bf232facd7cb35b392d389f (diff)
downloadseitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar.gz
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar.bz2
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar.lz
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar.xz
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.tar.zst
seitan-06b0f6d323c396ca1df000af96fdd07cc69b06e0.zip
filter: add logging mode
The logging mode creates a BPF filter where all the syscalls trigger a notification to the seccomp notifier.
Diffstat (limited to 'build.c')
-rw-r--r--build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.c b/build.c
index f99dc97..93ce97b 100644
--- a/build.c
+++ b/build.c
@@ -23,7 +23,8 @@ int main(int argc, char **argv)
perror("missing input file");
exit(EXIT_FAILURE);
}
- ret = convert_bpf(argv[1], calls, sizeof(calls) / sizeof(calls[0]));
+ ret = convert_bpf(argv[1], calls, sizeof(calls) / sizeof(calls[0]),
+ true);
if (ret < 0) {
perror("converting bpf program");
exit(EXIT_FAILURE);