From 04aaf5a424b1f88a481a17a6bc3518e2116250e2 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 21 Dec 2012 12:50:29 -0800 Subject: [PATCH] android_filesystem_config: allow absolute paths SELinux policies use absolute paths, allow absolute paths in fs_config as well. Change-Id: Ic97ee0b4eb4df9eac965a8e819fde01df473de7e --- include/private/android_filesystem_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 3a2500ede..f90af81ca 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -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++){