Merge "libcutils: fs_config() add check /oem/etc/fs_config_*" am: c530045850
am: 6b5913a8b6
Change-Id: I77bf1476f5565e05d7b30ccdb0481e389f8a49ba
This commit is contained in:
commit
8876fffd08
1 changed files with 12 additions and 7 deletions
|
@ -112,17 +112,20 @@ static const struct fs_path_config android_dirs[] = {
|
|||
*/
|
||||
static const char sys_conf_dir[] = "/system/etc/fs_config_dirs";
|
||||
static const char sys_conf_file[] = "/system/etc/fs_config_files";
|
||||
/* No restrictions are placed on the vendor file-system config files,
|
||||
* although the developer is advised to restrict the scope to the /vendor
|
||||
* file-system since the intent is to provide support for customized
|
||||
* portions of a separate vendor.img. Has to remain open so that
|
||||
* customization can also land on /system/vendor. We expect build-time
|
||||
* checking or filtering when constructing /vendor/etc/fs_config_* files.
|
||||
/* No restrictions are placed on the vendor and oem file-system config files,
|
||||
* although the developer is advised to restrict the scope to the /vendor or
|
||||
* oem/ file-system since the intent is to provide support for customized
|
||||
* portions of a separate vendor.img or oem.img. Has to remain open so that
|
||||
* customization can also land on /system/vendor or /system/orm. We expect
|
||||
* build-time checking or filtering when constructing the associated
|
||||
* fs_config_* files.
|
||||
*/
|
||||
static const char ven_conf_dir[] = "/vendor/etc/fs_config_dirs";
|
||||
static const char ven_conf_file[] = "/vendor/etc/fs_config_files";
|
||||
static const char oem_conf_dir[] = "/oem/etc/fs_config_dirs";
|
||||
static const char oem_conf_file[] = "/oem/etc/fs_config_files";
|
||||
static const char* conf[][2] = {
|
||||
{sys_conf_file, sys_conf_dir}, {ven_conf_file, ven_conf_dir},
|
||||
{sys_conf_file, sys_conf_dir}, {ven_conf_file, ven_conf_dir}, {oem_conf_file, oem_conf_dir},
|
||||
};
|
||||
|
||||
static const struct fs_path_config android_files[] = {
|
||||
|
@ -139,6 +142,8 @@ static const struct fs_path_config android_files[] = {
|
|||
{ 00600, AID_ROOT, AID_ROOT, 0, "default.prop" },
|
||||
{ 00600, AID_ROOT, AID_ROOT, 0, "odm/build.prop" },
|
||||
{ 00600, AID_ROOT, AID_ROOT, 0, "odm/default.prop" },
|
||||
{ 00444, AID_ROOT, AID_ROOT, 0, oem_conf_dir + 1 },
|
||||
{ 00444, AID_ROOT, AID_ROOT, 0, oem_conf_file + 1 },
|
||||
{ 00750, AID_ROOT, AID_SHELL, 0, "sbin/fs_mgr" },
|
||||
{ 00755, AID_ROOT, AID_SHELL, 0, "system/bin/crash_dump32" },
|
||||
{ 00755, AID_ROOT, AID_SHELL, 0, "system/bin/crash_dump64" },
|
||||
|
|
Loading…
Reference in a new issue