commit | 04aaf5a424b1f88a481a17a6bc3518e2116250e2 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Dec 21 12:50:29 2012 -0800 |
committer | Colin Cross <ccross@android.com> | Fri Dec 21 12:51:17 2012 -0800 |
tree | 31ae72a91f6211143b558a9a87c6e133e59bf20f | |
parent | 82ea44f88fed158fd807ef5b79100295b1163941 [diff] |
android_filesystem_config: allow absolute paths SELinux policies use absolute paths, allow absolute paths in fs_config as well. Change-Id: Ic97ee0b4eb4df9eac965a8e819fde01df473de7e
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 3a2500e..f90af81 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h
@@ -236,6 +236,10 @@ struct fs_path_config *pc; int plen; + if (path[0] == '/') { + path++; + } + pc = dir ? android_dirs : android_files; plen = strlen(path); for(; pc->prefix; pc++){