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

Commit b1952591 authored by Song Chun Fan's avatar Song Chun Fan Committed by Gerrit Code Review
Browse files

Merge "Fix incorrect gid config leads to process/system cannot start." into main

parents c788401e a7d6c674
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1638,7 +1638,13 @@ public class SystemConfig {
                String gidStr = parser.getAttributeValue(null, "gid");
                if (gidStr != null) {
                    int gid = Process.getGidForName(gidStr);
                    if (gid != -1) {
                        perm.gids = appendInt(perm.gids, gid);
                    } else {
                        Slog.w(TAG, "<group> with unknown gid \""
                                + gidStr + " for permission " + name + " in "
                                + parser.getPositionDescription());
                    }
                } else {
                    Slog.w(TAG, "<group> without gid at "
                            + parser.getPositionDescription());