From: Christian Brauner Date: Mon, 9 Mar 2020 13:33:16 +0000 (+0100) Subject: cgroup2_devices: fix logic error X-Git-Tag: lxc-4.0.0~42^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=874145c15ca3a7c8246f8fc22736bd5816f003f4;p=thirdparty%2Flxc.git cgroup2_devices: fix logic error Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgroup2_devices.c b/src/lxc/cgroups/cgroup2_devices.c index 7df811242..eef4647b0 100644 --- a/src/lxc/cgroups/cgroup2_devices.c +++ b/src/lxc/cgroups/cgroup2_devices.c @@ -348,7 +348,7 @@ int bpf_program_cgroup_attach(struct bpf_program *prog, int type, if (!prog) return ret_set_errno(-1, EINVAL); - if (flags & ~(BPF_F_ALLOW_OVERRIDE, BPF_F_ALLOW_MULTI)) + if (flags & ~(BPF_F_ALLOW_OVERRIDE | BPF_F_ALLOW_MULTI)) return log_error_errno(-1, EINVAL, "Invalid flags for bpf program"); if (prog->attached_path) {