From: Christian Brauner Date: Sun, 1 Dec 2019 10:55:19 +0000 (+0100) Subject: api_extension: add cgroup2_devices api extension X-Git-Tag: lxc-4.0.0~90^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4dffa2f972db6f92aa894bc0b103f8cd95c74dd;p=thirdparty%2Flxc.git api_extension: add cgroup2_devices api extension This will only be defined if liblxc was even compiled with bpf supported. Support itself will be determined at runtime by liblxc itself. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/api_extensions.h b/src/lxc/api_extensions.h index a063c0a75..ba9ff7ff6 100644 --- a/src/lxc/api_extensions.h +++ b/src/lxc/api_extensions.h @@ -24,6 +24,8 @@ #include #include +#include "config.h" + /* * api_extensions is the list of all API extensions in the order they were * added. @@ -50,6 +52,9 @@ static char *api_extensions[] = { "network_gateway_device_route", "network_phys_macvlan_mtu", "network_veth_router", +#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX + "cgroup2_devices", +#endif }; static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions);