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

Commit 7c195a27 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 341b607c: am 25aabb9e: Permission to view shared storage for all users.

* commit '341b607c':
  Permission to view shared storage for all users.
parents a2b0ff49 341b607c
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -444,7 +444,16 @@ static void derive_permissions_locked(struct fuse* fuse, struct node *parent,
        /* Legacy internal layout places users at top level */
        node->perm = PERM_ROOT;
        node->userid = strtoul(node->name, NULL, 10);
        if (fuse->gid == AID_SDCARD_RW) {
            /* As an optimization, certain trusted system components only run
             * as owner but operate across all users. Since we're now handing
             * out the sdcard_rw GID only to trusted apps, we're okay relaxing
             * the user boundary enforcement for the default view. The UIDs
             * assigned to app directories are still multiuser aware. */
            node->gid = fuse->gid;
        } else {
            node->gid = multiuser_get_uid(node->userid, fuse->gid);
        }
        node->mode = 0771;
        break;
    case PERM_ROOT: