summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2018-12-13 10:56:33 -0800
committerNick Kralevich <nnk@google.com>2018-12-13 10:56:33 -0800
commit53842f8a9044db84109ee84dbacef09491be15c2 (patch)
tree10b5f92e3267aa4d8b593e54eed27a7afd6746eb
parent41216e591b70f5b53f4cccde00ddb0be0cfda25d (diff)
downloadsystem_core-53842f8a9044db84109ee84dbacef09491be15c2.tar.gz
system_core-53842f8a9044db84109ee84dbacef09491be15c2.tar.bz2
system_core-53842f8a9044db84109ee84dbacef09491be15c2.zip
relax /system/bin directory permissions
In commit f4fc922f0b863659ca8e97c1f5fa522fafc7deb6, we tightened the permissions on various bin directories. Please see https://android-review.googlesource.com/c/platform/system/core/+/822955 for details. This change causes the Chase banking app to crash. This is because the Chase app is using inotify_add_watch() on the /system/bin directory and not checking the return value. The Android Security model guarantees the immutability of files in /system/bin, so the inotify watch is unnecessary. Until the Chase app fixes their bug, we need to relax the permissions on the /system/bin directory. Conceptually, this is a partial revert of f4fc922f0b863659ca8e97c1f5fa522fafc7deb6. Bug: 119605322 Test: compiles Change-Id: Ic72dd24cb27cff677093963bdfd0ae09bf132e08
-rw-r--r--libcutils/fs_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp
index db59569f8..1490fbce6 100644
--- a/libcutils/fs_config.cpp
+++ b/libcutils/fs_config.cpp
@@ -84,7 +84,7 @@ static const struct fs_path_config android_dirs[] = {
{ 00750, AID_ROOT, AID_SHELL, 0, "sbin" },
{ 00777, AID_ROOT, AID_ROOT, 0, "sdcard" },
{ 00751, AID_ROOT, AID_SDCARD_R, 0, "storage" },
- { 00751, AID_ROOT, AID_SHELL, 0, "system/bin" },
+ { 00755, AID_ROOT, AID_SHELL, 0, "system/bin" },
{ 00755, AID_ROOT, AID_ROOT, 0, "system/etc/ppp" },
{ 00755, AID_ROOT, AID_SHELL, 0, "system/vendor" },
{ 00751, AID_ROOT, AID_SHELL, 0, "system/xbin" },