summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser_test.cpp
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2013-08-05 13:03:58 -0700
committerAlex Klyubin <klyubin@google.com>2013-08-21 12:15:27 -0700
commitb0739c662db6a19b49c0912b865edb2853156bda (patch)
tree494cd028b6b22b2cb1fed2e35154f83f45db36f2 /libpackagelistparser/packagelistparser_test.cpp
parent821678e1c7bd0af12fa4adc314c9024def9ba7c0 (diff)
Fix run-as which was broken in Android 4.3
In Android 4.3 the run-as binary no longer has the SUID/SGID bits set. Instead, it requires to be installed with setuid and setgid file-based capabilities. As a result of the above two changes, the binary no longer executes as root when invoked by the "shell" user but can still change its UID/GID to that of the target package. Unfortunately, run-as attempts to chdir into the target package's data directory before changing its effective UID/GID. As a result, when run-as is invoked by the "shell" user, the chdir operation fails. The fix is for run-as to chdir after changing the effective UID/GID to those of the target package. Bug: 10154652 (cherry picked from commit f2904a7b63c2005ab588a9ba2fb309e73200ec81) Change-Id: I0f6cb9efd49f5c2c491f7aa1d614d700a5ec2304
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions