chiark / gitweb /
cgroup: don't allow hidden cgroups
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2015 15:54:17 +0000 (17:54 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:19:06 +0000 (10:19 +0100)
We really should care for all cgroups, and not allow hidden ones.

src/basic/cgroup-util.c

index f96cd63..8fbbd30 100644 (file)
@@ -113,7 +113,7 @@ int cg_read_subgroup(DIR *d, char **fn) {
         assert(d);
         assert(fn);
 
-        FOREACH_DIRENT(de, d, return -errno) {
+        FOREACH_DIRENT_ALL(de, d, return -errno) {
                 char *b;
 
                 if (de->d_type != DT_DIR)