summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2014-11-26 21:49:52 +0000
committerRicardo Cerqueira <ricardo@cyngn.com>2015-10-29 22:01:54 +0000
commit6703fc36e3143d6fa9a0f987fcf34e772836c27e (patch)
treeb333336140573c9b5443b105fbf2eed54ccddccb
parent3a86ae73b97658be9ba9623b8feda98c30eb2f80 (diff)
downloadsystem_core-6703fc36e3143d6fa9a0f987fcf34e772836c27e.zip
system_core-6703fc36e3143d6fa9a0f987fcf34e772836c27e.tar.gz
system_core-6703fc36e3143d6fa9a0f987fcf34e772836c27e.tar.bz2
Update permissions to the superuser binary
Change-Id: Ia382c74854cfbe625653b8b6b016b37f93132658
-rw-r--r--libcutils/fs_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c
index 9a1ad19..8e4451c 100644
--- a/libcutils/fs_config.c
+++ b/libcutils/fs_config.c
@@ -121,9 +121,10 @@ static const struct fs_path_config android_files[] = {
{ 00644, AID_SYSTEM, AID_SYSTEM, 0, "data/app-private/*" },
{ 00644, AID_APP, AID_APP, 0, "data/data/*" },
+ /* CM's daemonized su doesn't need the setuid bit */
+ { 00755, AID_ROOT, AID_SHELL, 0, "system/xbin/su" },
/* the following five files are INTENTIONALLY set-uid, but they
* are NOT included on user builds. */
- { 04750, AID_ROOT, AID_SHELL, 0, "system/xbin/su" },
{ 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/librank" },
{ 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/procrank" },
{ 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/procmem" },