From 36b8eb3ce55602bcf36199330e98f2e154225cf7 Mon Sep 17 00:00:00 2001
From: Stefano Brivio <sbrivio@redhat.com>
Date: Tue, 25 Oct 2022 15:19:55 +0200
Subject: seitan: Initial import

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 qemu_filter | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 qemu_filter

(limited to 'qemu_filter')

diff --git a/qemu_filter b/qemu_filter
new file mode 100644
index 0000000..9ce4824
--- /dev/null
+++ b/qemu_filter
@@ -0,0 +1,10 @@
+# syscall	type		args
+
+# type fd1: fd first argument, sockaddr_un with path, check and replace path
+connect		fd1_unix	/tmp/qemu-pr-helper.sock		/tmp/qemu-pr-helper.sock
+
+# type fdret_src: source path first argument, check and replace, return fd
+mount		fdret_src	/escalate_badly				/etc
+
+# type dev_check: path first argument, check and replace, allow second argument only
+ioctl		dev_check	/dev/tun/tap				/dev/tun/tap
-- 
cgit v1.2.3