platform_system_core/run-as
David 'Digit' Turner 5792ce79cc 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
2011-12-06 14:22:30 -08:00
..
Android.mk Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
NOTICE Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
package.c run-as: use mmap to read package list file 2011-12-06 14:22:30 -08:00
package.h Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
run-as.c Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00