diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-01-16 09:52:20 +0100 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-01-16 10:27:18 +0100 |
commit | 9b2dd57a6e6ba4faae483efac8e4a43daba8155f (patch) | |
tree | c804194b6d8c3e4f45252e58e98342ddcdc6797d | |
parent | ab28b379df691ac040629273b03cd2fe3b6343fb (diff) | |
download | seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar.gz seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar.bz2 seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar.lz seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar.xz seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.tar.zst seitan-9b2dd57a6e6ba4faae483efac8e4a43daba8155f.zip |
Rename loader to eater
Signed-off-by: Alice Frosi <afrosi@redhat.com>
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | eater.c (renamed from loader.c) | 4 | ||||
-rw-r--r-- | seitan.c | 4 |
4 files changed, 10 insertions, 10 deletions
@@ -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 @@ -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 @@ -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); @@ -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) |