1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

bpf: do not bother adding device patterns after whitelisting the full class

This seems to have been unintentional.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-11-08 11:17:08 +01:00
parent fa6613fc53
commit d49c180826

View File

@ -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)) {