mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add missing device cgroups.
PiperOrigin-RevId: 556053561
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user