]> git.proxmox.com Git - mirror_lxc.git/commitdiff
api-extensions: don't advertise seccomp notify support if it's not compiled in
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Dec 2021 09:41:59 +0000 (10:41 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Dec 2021 09:41:59 +0000 (10:41 +0100)
Link: https://discuss.linuxcontainers.org/t/runtimeerror-failed-to-read-zi-bytes-from-dev-urandom
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/api_extensions.h

index ea5011c128487c0903246ceff45778a29c1b07ce..334f470febefd0b8f7610fa0bb710ed575135f7e 100644 (file)
@@ -27,7 +27,9 @@ static char *api_extensions[] = {
        "cgroup_relative",
        "mount_injection_file",
        "seccomp_allow_nesting",
+#ifdef HAVE_SECCOMP_NOTIFY
        "seccomp_notify",
+#endif /* HAVE_SECCOMP_NOTIFY */
        "network_veth_routes",
        "network_ipvlan",
        "network_l2proxy",
@@ -42,8 +44,10 @@ static char *api_extensions[] = {
        "time_namespace",
        "seccomp_allow_deny_syntax",
        "devpts_fd",
+#ifdef HAVE_SECCOMP_NOTIFY
        "seccomp_notify_fd_active",
        "seccomp_proxy_send_notify_fd",
+#endif /* HAVE_SECCOMP_NOTIFY */
        "idmapped_mounts",
        "idmapped_mounts_v2",
        "core_scheduling",