aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-02-04 16:42:13 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-02-04 08:52:27 +0100
commitb4a7b5d4a66db5f419cb5de87da3403cfba3847d (patch)
tree1178d3f6fc45926390f58971019275e1f3328b5f
parentdcf014be8876d5417b0eddb8b07152c6b2035485 (diff)
downloadpasst-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar.gz
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar.bz2
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar.lz
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar.xz
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.tar.zst
passt-b4a7b5d4a66db5f419cb5de87da3403cfba3847d.zip
migrate: Fix several errors with passt-repair
The passt-repair helper is now merged, but alas it contains several small bugs: * close() is not in the seccomp profile, meaning it will immediately SIGSYS when you make a request of it * The generated header, seccomp_repair.h isn't listed in .gitignore or removed by "make clean" Fixes: 8c24301462c3 ("Introduce passt-repair") Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
-rw-r--r--passt-repair.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 5824a71..3c16adc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,6 @@
/qrap
/pasta.1
/seccomp.h
+/seccomp_repair.h
/c*.json
README.plain.md
diff --git a/Makefile b/Makefile
index 6ab8d24..d3d4b78 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ valgrind: all
.PHONY: clean
clean:
- $(RM) $(BIN) *~ *.o seccomp.h pasta.1 \
+ $(RM) $(BIN) *~ *.o seccomp.h seccomp_repair.h pasta.1 \
passt.tar passt.tar.gz *.deb *.rpm \
passt.pid README.plain.md
diff --git a/passt-repair.c b/passt-repair.c
index 767a821..dd8578f 100644
--- a/passt-repair.c
+++ b/passt-repair.c
@@ -46,7 +46,7 @@
*
* Return: 0 on success (EOF), 1 on error, 2 on usage error
*
- * #syscalls:repair connect setsockopt write exit_group
+ * #syscalls:repair connect setsockopt write close exit_group
* #syscalls:repair socket s390x:socketcall i686:socketcall
* #syscalls:repair recvfrom recvmsg arm:recv ppc64le:recv
* #syscalls:repair sendto sendmsg arm:send ppc64le:send