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

Commit 04b1a266 authored by T.J. Mercier's avatar T.J. Mercier Committed by Gerrit Code Review
Browse files

Merge "Don't skip proess group creation for system_server" into main

parents 99965ff0 461c2d09
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 "