]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: close seccomp notifier fd in cleanup handler 4053/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 7 Jan 2022 12:42:33 +0000 (13:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 7 Jan 2022 12:42:33 +0000 (13:42 +0100)
Reported-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/seccomp.c

index 6c56b8d0fb2cb343df41c24f68c44e0100c5a62d..5a725f677bdad64a6722306fcdc9fbef017265bb 100644 (file)
@@ -1373,6 +1373,7 @@ int seccomp_notify_cleanup_handler(int fd, void *data)
         * seccomp notify handler through the command socket (e.g. for attach)
         * and so we won't touch the container's config.
         */
+       close(fd);
 #endif
        return 0;
 }