aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-29 23:47:35 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-03-30 05:49:46 +0200
commit8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5 (patch)
tree48003495498d752ceeda85db06cdc3b34dc457f4 /tap.c
parent37c228ada88b7fa0001659b13c34a783ba75df83 (diff)
downloadpasst-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar.gz
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar.bz2
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar.lz
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar.xz
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.tar.zst
passt-8d85b6a99ebf02a65a097ac3f5cdb83cd4119bd5.zip
tap: Allow ioctl() and openat() for tap_ns_tun() re-initialisation
If the tun interface disappears, we'll call tap_ns_tun() after the seccomp profile is applied: add ioctl() and openat() to it. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tap.c b/tap.c
index aca8c75..f6de5f1 100644
--- a/tap.c
+++ b/tap.c
@@ -873,6 +873,8 @@ static int tun_ns_fd = -1;
* @c: Execution context
*
* Return: 0
+ *
+ * #syscalls:pasta ioctl openat
*/
static int tap_ns_tun(void *arg)
{