Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 461c2d09 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

Don't skip proess group creation for system_server

Otherwise system_server incorrectly shows up in the uid_0 (root) cgroup
in the v2 hierarchy.

Change-Id: I6123b649dabd8c752e527c776d611f5899abfe2c
Bug: 326301963
parent 095f7f73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1828,7 +1828,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids,

    // If this zygote isn't root, it won't be able to create a process group,
    // since the directory is owned by root.
    if (!is_system_server && getuid() == 0) {
    if (getuid() == 0) {
        const int rc = createProcessGroup(uid, getpid());
        if (rc != 0) {
            fail_fn(rc == -EROFS ? CREATE_ERROR("createProcessGroup failed, kernel missing "