From: Zbigniew Jędrzejewski-Szmek Date: Fri, 8 Nov 2019 10:17:08 +0000 (+0100) Subject: bpf: do not bother adding device patterns after whitelisting the full class X-Git-Tag: v244-rc1~62^2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d49c180826e56771a1cdb31eb01fe258a4b74076;p=thirdparty%2Fsystemd.git bpf: do not bother adding device patterns after whitelisting the full class This seems to have been unintentional. --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index d024f88e6ad..61d5a4dfca8 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -750,9 +750,7 @@ static int whitelist_major(BPFProgram *prog, const char *path, const char *name, if (streq(name, "*")) { /* If the name is a wildcard, then apply this list to all devices of this type */ (void) whitelist_device_pattern(prog, path, type, NULL, NULL, acc); - - if (cg_all_unified() <= 0) - return 0; + return 0; } if (safe_atou(name, &maj) >= 0 && DEVICE_MAJOR_VALID(maj)) {