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

Commit 3e2db8c6 authored by Josh Guilfoyle's avatar Josh Guilfoyle
Browse files

Create res-cache folders world-writable for now.

This represents a security vulnerability that permits tampering.  Should
be closed by centralizing write access to this directory to a special
system service.
parent 8be0335c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -752,9 +752,9 @@ void AssetManager::loadRedirectionMappings(ResTable* rt) const
        struct stat statbuf;
        String8 basePath(data);
        basePath.appendPath(kThemeResCacheDir);
        createDirIfNecessary(basePath.string(), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, &statbuf);
        createDirIfNecessary(basePath.string(), 0777, &statbuf);
        basePath.appendPath(mThemePackageName);
        createDirIfNecessary(basePath.string(), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, &statbuf);
        createDirIfNecessary(basePath.string(), 0777, &statbuf);

        String8 themeDirLockPath(basePath);
        themeDirLockPath.append(".lck");