[PATCH] procd: jail/cgroups: correctly enable "rdma" when requested

Roman Azarenko roman.azarenko at iopsys.eu
Tue Jan 11 07:45:51 PST 2022


Fixes a copy-paste error, where "pids" cgroup was enabled instead of "rdma".

Signed-off-by: Roman Azarenko <roman.azarenko at iopsys.eu>
---
 jail/cgroups.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jail/cgroups.c b/jail/cgroups.c
index a9484e8..2d3dce4 100644
--- a/jail/cgroups.c
+++ b/jail/cgroups.c
@@ -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;
-- 
2.34.1




More information about the openwrt-devel mailing list