summaryrefslogtreecommitdiffstats
path: root/run-as/package.h
Commit message (Collapse)AuthorAgeFilesLines
* run-as: Get seinfo from packages.list and pass to libselinux.Robert Craig2013-03-281-0/+1
| | | | | | | | | Change allows the proper seinfo value to be passed to libselinux to switch to the proper app security context before running the shell. Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
* Add 'run-as' command implementation as set-uid program.David 'Digit' Turner2010-03-171-0/+41
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 !