Browse Source

procd: jail/cgroups: correctly enable "rdma" when requested

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

Signed-off-by: Roman Azarenko <roman.azarenko@iopsys.eu>
Roman Azarenko 2 years ago
parent
commit
35dfbffc2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jail/cgroups.c

+ 1 - 1
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;