procd: jail/cgroups: correctly enable "rdma" when requested
authorRoman Azarenko <roman.azarenko@iopsys.eu>
Tue, 11 Jan 2022 15:45:51 +0000 (16:45 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 11 Jan 2022 16:19:19 +0000 (16:19 +0000)
Fixes a copy-paste error, where "pids" cgroup was enabled instead of "rdma".

Signed-off-by: Roman Azarenko <roman.azarenko@iopsys.eu>
jail/cgroups.c

index a9484e8d8bc1759b100de1730c4d44a67e062ac4..2d3dce4d31acc25b0c4c38643e55928f7743847f 100644 (file)
@@ -138,7 +138,7 @@ void cgroups_apply(pid_t pid)
                else if (!strncmp("pids.", ent, 5))
                        pids = true;
                else if (!strncmp("rdma.", ent, 5))
-                       pids = true;
+                       rdma = true;
        }
 
        maxlen += strlen(cgroup_path) + 2;