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

Commit 04aaf5a4 authored by Colin Cross's avatar Colin Cross
Browse files

android_filesystem_config: allow absolute paths

SELinux policies use absolute paths, allow absolute paths in fs_config
as well.

Change-Id: Ic97ee0b4eb4df9eac965a8e819fde01df473de7e
parent 82ea44f8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -236,6 +236,10 @@ static inline void fs_config(const char *path, int dir,
    struct fs_path_config *pc;
    int plen;

    if (path[0] == '/') {
        path++;
    }

    pc = dir ? android_dirs : android_files;
    plen = strlen(path);
    for(; pc->prefix; pc++){