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: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 637de040
......@@ -24,6 +24,8 @@
#include <stdio.h>
#include <stdlib.h>
#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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment