diff options
author | Suren Baghdasaryan <surenb@google.com> | 2019-03-28 17:13:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-28 17:13:09 +0000 |
commit | 81cfeb54fccce28d4f68e4ee63449e71679d1d91 (patch) | |
tree | 78d2b6e05b12bc1b269192526e6d5f462b4afeef /init | |
parent | 60de3486541b26cf639f6d43acd98a044c1b0c81 (diff) | |
parent | 5b5357367163a6238c45c020c9e5ff0dbaa31f59 (diff) | |
download | system_core-81cfeb54fccce28d4f68e4ee63449e71679d1d91.tar.gz system_core-81cfeb54fccce28d4f68e4ee63449e71679d1d91.tar.bz2 system_core-81cfeb54fccce28d4f68e4ee63449e71679d1d91.zip |
Merge "libprocessgroup: restrict SetupCgroups to one-time usage and only by init"
Diffstat (limited to 'init')
-rw-r--r-- | init/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.cpp b/init/init.cpp index a5f45497b..cdec41cd8 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -357,7 +357,7 @@ static Result<Success> console_init_action(const BuiltinArguments& args) { static Result<Success> SetupCgroupsAction(const BuiltinArguments&) { // Have to create <CGROUPS_RC_DIR> using make_dir function // for appropriate sepolicy to be set for it - make_dir(CGROUPS_RC_DIR, 0711); + make_dir(android::base::Dirname(CGROUPS_RC_PATH), 0711); if (!CgroupSetupCgroups()) { return ErrnoError() << "Failed to setup cgroups"; } |