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

Commit 18860c52 authored by Alex Klyubin's avatar Alex Klyubin
Browse files

Enable run-as to read packages.list now owned by package_info.

The group ownership of the package database
/data/system/packages.list read by run-as was changed in
977a9f3b from "system" to
"package_info". run-as currently changes its effective group to
"system" and is thus unable to read the database.

This CL fixes the issue by making run-as change its effective group
to "package_info" for reading the package database.

Bug: 10411916
Change-Id: Id23059bfb5b43264824917873a31c287f057ce4e
parent 0d872d8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ map_file(const char* filename, size_t* filesize)
     */

    oldegid = getegid();
    if (setegid(AID_SYSTEM) < 0) {
    if (setegid(AID_PACKAGE_INFO) < 0) {
        return NULL;
    }