]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: introduce lxc_bpf_devices_rule_t type
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 09:15:39 +0000 (10:15 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 09:50:03 +0000 (10:50 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.h

index 82a4681b86a3232fc9f86e46699939d280638e56..490356b41b5031952d70b29a17bee6786b4f50f1 100644 (file)
@@ -269,11 +269,11 @@ struct lxc_state_client {
        lxc_state_t states[MAX_STATE];
 };
 
-enum {
-       LXC_BPF_DEVICE_CGROUP_LOCAL_RULE = -1,
-       LXC_BPF_DEVICE_CGROUP_ALLOWLIST   0,
-       LXC_BPF_DEVICE_CGROUP_DENYLIST   1,
-};
+typedef enum lxc_bpf_devices_rule_t {
+       LXC_BPF_DEVICE_CGROUP_LOCAL_RULE        = -1,
+       LXC_BPF_DEVICE_CGROUP_ALLOWLIST         = 0,
+       LXC_BPF_DEVICE_CGROUP_DENYLIST          = 1,
+} lxc_bpf_devices_rule_t;
 
 struct device_item {
        char type;