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

Commit 11be778b authored by T.J. Mercier's avatar T.J. Mercier Committed by Automerger Merge Worker
Browse files

Merge "Don't skip proess group creation for system_server" into main am: 04b1a266 am: 157bc83a

parents 683ba1eb 157bc83a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1965,7 +1965,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 "