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

Commit 0dd50e61 authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

Fix installd to create /data/data/<pkgname> with appropriate permissions.

The directory was created with read+exec rights for others.
The patch restricts it to only exec rights.
parent b687581d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ int install(const char *pkgname, int encrypted_fs_flag, uid_t uid, gid_t gid)
            return -1;
    }

    if (mkdir(pkgdir, 0755) < 0) {
    if (mkdir(pkgdir, 0751) < 0) {
        LOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno));
        return -errno;
    }