aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--README.md4
-rw-r--r--eater.c (renamed from loader.c)4
-rw-r--r--seitan.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index f45b1de..e3688c2 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ CFLAGS += -Wall -Wextra -pedantic
export CFLAGS
-all: t.out seitan-loader seitan
+all: t.out seitan-eater seitan
build: build.c filter.c filter.h numbers.h
$(CC) $(CFLAGS) -o build filter.c build.c
@@ -22,8 +22,8 @@ build: build.c filter.c filter.h numbers.h
bpf_dbg: disasm.c disasm.h bpf_dbg.c
$(CC) $(CFLAGS) -o bpf_dbg bpf_dbg.c disasm.c
-seitan-loader: loader.c
- $(CC) $(CFLAGS) -o seitan-loader loader.c
+seitan-eater: eater.c
+ $(CC) $(CFLAGS) -o seitan-eater eater.c
seitan: seitan.c transform.h
$(CC) $(CFLAGS) -o seitan seitan.c
@@ -38,4 +38,4 @@ transform.h: qemu_filter
./transform.sh qemu_filter
clean:
- rm -f filter.h numbers.h transform.h t.out bpf.out build seitan-loader seitan
+ rm -f filter.h numbers.h transform.h t.out bpf.out build seitan-eater seitan
diff --git a/README.md b/README.md
index 048b30f..a690327 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ div > ul {
* **build-table**
* build transformation table
-* **seitan-loader**
+* **seitan-eater**
* load BPF blob
* attach filter
* call blocking syscall
@@ -30,7 +30,7 @@ div > ul {
* **seitan**
* load transformation table blob
* listen to netlink proc connector
- * look for seitan-loader, once found:
+ * look for seitan-eater, once found:
* get seccomp notifier via pidfd_getfd()
* listen to it, new syscall:
* look up in transformation table
diff --git a/loader.c b/eater.c
index bd2530e..a7a6b5f 100644
--- a/loader.c
+++ b/eater.c
@@ -2,7 +2,7 @@
/* SEITAN - Syscall Expressive Interpreter, Transformer and Notifier
*
- * loader.c - Load BPF program and execute binary
+ * eater.c - Load BPF program and execute binary
*
* Copyright (c) 2022 Red Hat GmbH
* Author: Stefano Brivio <sbrivio@redhat.com>
@@ -41,7 +41,7 @@ static char *qemu_names[] = {
*/
void usage(void)
{
- fprintf(stderr, "Usage: seitan-loader [QEMU_ARG]...\n");
+ fprintf(stderr, "Usage: seitan-eater [QEMU_ARG]...\n");
fprintf(stderr, "\n");
exit(EXIT_FAILURE);
diff --git a/seitan.c b/seitan.c
index d1e55a6..178dc38 100644
--- a/seitan.c
+++ b/seitan.c
@@ -92,8 +92,8 @@ static int event(int s)
ev->event_data.exec.process_pid);
readlink(path, exe, PATH_MAX);
- if (!strcmp(exe, "/usr/local/bin/seitan-loader") ||
- !strcmp(exe, "/usr/bin/seitan-loader"))
+ if (!strcmp(exe, "/usr/local/bin/seitan-eater") ||
+ !strcmp(exe, "/usr/bin/seitan-eater"))
return ev->event_data.exec.process_pid;
if (nlh->nlmsg_type == NLMSG_DONE)