Add missing device cgroups.

PiperOrigin-RevId: 556053561
This commit is contained in:
Jing Chen
2023-08-11 12:48:03 -07:00
committed by gVisor bot
parent 65bbd235a6
commit 2ce5c336d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ func newDevicesController(fs *filesystem) *devicesController {
allow: true,
deviceRules: []deviceRule{},
}
c.controllerCommon.init(kernel.CgroupControllerJob, fs)
c.controllerCommon.init(kernel.CgroupControllerDevices, fs)
return c
}
+1 -1
View File
@@ -50,7 +50,7 @@ using ::testing::Key;
using ::testing::Not;
std::vector<std::string> known_controllers = {
"cpu", "cpuset", "cpuacct", "job", "memory", "pids",
"cpu", "cpuset", "cpuacct", "devices", "job", "memory", "pids",
};
bool CgroupsAvailable() {