android_filesystem_config: allow absolute paths

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

Change-Id: Ic97ee0b4eb4df9eac965a8e819fde01df473de7e
This commit is contained in:
Colin Cross 2012-12-21 12:50:29 -08:00
parent 82ea44f88f
commit 04aaf5a424

View file

@ -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++){