From 096c4f2d8a12639e484e2d806223d4fe5bf1d4b2 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Sat, 18 Jul 2015 19:46:16 -0700 Subject: [PATCH] Set mode bits for /system/etc/recovery.img. /system/etc/recovery.img defaults to 0644. Change it to 0440. Bug: 22641135 Change-Id: I45cdb0cc1b58f35fbcd0f16e7cc6c4eef63b0b74 (cherry picked from commit b602e6f9a3ad25e034e42fd6dc5dc28e52c1c3e5) --- libcutils/fs_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c index e1b9ace6c..da66546d0 100644 --- a/libcutils/fs_config.c +++ b/libcutils/fs_config.c @@ -118,6 +118,7 @@ static const struct fs_path_config android_files[] = { { 00550, AID_DHCP, AID_SHELL, 0, "system/etc/dhcpcd/dhcpcd-run-hooks" }, { 00555, AID_ROOT, AID_ROOT, 0, "system/etc/ppp/*" }, { 00555, AID_ROOT, AID_ROOT, 0, "system/etc/rc.*" }, + { 00440, AID_ROOT, AID_ROOT, 0, "system/etc/recovery.img" }, { 00444, AID_ROOT, AID_ROOT, 0, conf_dir + 1 }, { 00444, AID_ROOT, AID_ROOT, 0, conf_file + 1 }, { 00644, AID_SYSTEM, AID_SYSTEM, 0, "data/app/*" },