projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6613f
)
bpf: do not bother adding device patterns after whitelisting the full class
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 8 Nov 2019 10:17:08 +0000
(11:17 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 10 Nov 2019 22:22:15 +0000
(23:22 +0100)
This seems to have been unintentional.
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index d024f88e6ad45974703e3ce9ead263a110389ea6..61d5a4dfca82c41a9e54eaff3a1881587d26bb2a 100644
(file)
--- 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)) {