commit | 5792ce79cc79cd0eef9fadd6351521b128b4e85c | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@android.com> | Sat Aug 27 18:48:45 2011 +0200 |
committer | Jean-Baptiste Queru <jbq@google.com> | Tue Dec 06 14:22:30 2011 -0800 |
tree | 9333a01e3336e4d4195152ad2a1fbce9b10b6cf9 | |
parent | de90da4d8ac11c6794d0a7751633224c3ec11d90 [diff] |
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