CgroupSetupCgroups -> CgroupSetup
Test: builds Bug: 123664216 Change-Id: I47c46ca9ba5c1fbf3f9f7a1b185dc48b058b1e32
This commit is contained in:
parent
169a3e6095
commit
eecba5c11d
3 changed files with 3 additions and 3 deletions
|
|
@ -359,7 +359,7 @@ static Result<Success> SetupCgroupsAction(const BuiltinArguments&) {
|
||||||
// Have to create <CGROUPS_RC_DIR> using make_dir function
|
// Have to create <CGROUPS_RC_DIR> using make_dir function
|
||||||
// for appropriate sepolicy to be set for it
|
// for appropriate sepolicy to be set for it
|
||||||
make_dir(android::base::Dirname(CGROUPS_RC_PATH), 0711);
|
make_dir(android::base::Dirname(CGROUPS_RC_PATH), 0711);
|
||||||
if (!CgroupSetupCgroups()) {
|
if (!CgroupSetup()) {
|
||||||
return ErrnoError() << "Failed to setup cgroups";
|
return ErrnoError() << "Failed to setup cgroups";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ CgroupDescriptor::CgroupDescriptor(uint32_t version, const std::string& name,
|
||||||
} // namespace cgrouprc
|
} // namespace cgrouprc
|
||||||
} // namespace android
|
} // namespace android
|
||||||
|
|
||||||
bool CgroupSetupCgroups() {
|
bool CgroupSetup() {
|
||||||
using namespace android::cgrouprc;
|
using namespace android::cgrouprc;
|
||||||
|
|
||||||
std::map<std::string, CgroupDescriptor> descriptors;
|
std::map<std::string, CgroupDescriptor> descriptors;
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
bool CgroupSetupCgroups();
|
bool CgroupSetup();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue