From: Christian Brauner Date: Fri, 3 Jul 2020 11:01:40 +0000 (+0200) Subject: cgroups: update terminology II X-Git-Tag: lxc-5.0.0~398^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea99cf7e85509593ab4e8241bd90ebd01ba4980;p=thirdparty%2Flxc.git cgroups: update terminology II Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgroup2_devices.c b/src/lxc/cgroups/cgroup2_devices.c index 59a9c4bd6..db220e2ce 100644 --- a/src/lxc/cgroups/cgroup2_devices.c +++ b/src/lxc/cgroups/cgroup2_devices.c @@ -299,8 +299,8 @@ int bpf_program_finalize(struct bpf_program *prog) TRACE("Implementing %s bpf device cgroup program", prog->device_list_type == LXC_BPF_DEVICE_CGROUP_DENYLIST - ? "blacklist" - : "whitelist"); + ? "denylist" + : "allowlist"); ins[0] = BPF_MOV64_IMM(BPF_REG_0, prog->device_list_type); ins[1] = BPF_EXIT_INSN(); @@ -451,11 +451,11 @@ int bpf_list_add_device(struct lxc_conf *conf, struct device_item *device) device->global_rule > LXC_BPF_DEVICE_CGROUP_LOCAL_RULE) { TRACE("Switched from %s to %s", cur->global_rule == LXC_BPF_DEVICE_CGROUP_ALLOWLIST - ? "whitelist" - : "blacklist", + ? "allowlist" + : "denylist", device->global_rule == LXC_BPF_DEVICE_CGROUP_ALLOWLIST - ? "whitelist" - : "blacklist"); + ? "allowlist" + : "denylist"); cur->global_rule = device->global_rule; return 1; }