4ae77160727f8b92d61028269d1f49ae16873a08 |
|
09-Feb-2012 |
Nick Kralevich <nnk@google.com> |
do more checks on packages.list Change-Id: I16d6eab5e674c860be915fde2da7877994bed314
/system/core/run-as/package.c
|
5792ce79cc79cd0eef9fadd6351521b128b4e85c |
|
27-Aug-2011 |
David 'Digit' Turner <digit@android.com> |
run-as: use mmap to read package list file This patch uses mmap() to read /data/system/packages.list This avoids depending on the size of a fixed static buffer which may happen to be too short for systems with a lot of packages installed. Also avoids calling malloc() which we don't want to trust here since run-as is a setuid program. Change-Id: I1d640a08b5d73af2fc80546b01c8d970c7f6b514
/system/core/run-as/package.c
|
93d81ef7a104ae9a229aca3c7c6da0445440213e |
|
06-Jun-2011 |
David 'Digit' Turner <digit@android.com> |
run-as: Bump the size of the internal packages list buffer. This patch increases the size of the internal buffer used by run-as to store the content of /data/system/packages.list from 8KB to 64KB. It has been reported that, on some systems, 8KB was too small. This resulted in a truncated file being loaded, and the inability to debug native applications properly (either because the application was not found in the list, or because the tool reported a 'corrupted installation' due to BAD_FORMAT issues when parsing the truncated file). See http://code.google.com/p/android/issues/detail?id=16391 Change-Id: I0c35a61b163c4abc6f1a2681adc0ef0d76493171
/system/core/run-as/package.c
|
1f4d95296acf34a93128332441782a80c10845b4 |
|
03-Mar-2010 |
David 'Digit' Turner <digit@google.com> |
Add 'run-as' command implementation as set-uid program. Typical usage is 'run-as <package-name> <command>' to run <command> in the data directory, and the user id, of <package-name> if, and only if <package-name> is the name of an installed and debuggable application. This relies on the /data/system/packages.list file generated by the PackageManager service. BEWARE: This is intended to be available on production devices !
/system/core/run-as/package.c
|