platform_system_core/run-as
Elliott Hughes a372f6f241 Fix the run-as environment to better match su.
$USER and $LOGNAME along with $HOME were just plain wrong (leading to a
misleading interactive prompt), and it probably makes sense to reset the
variables that su would reset.

Bug: https://code.google.com/p/android/issues/detail?id=187438
Change-Id: I0404511453d371f36801f0212a8d72d93f0bc8ac
2015-11-03 14:31:46 -08:00
..
Android.mk run-as: turn on -Werror 2014-05-07 16:56:21 -07:00
NOTICE Add 'run-as' command implementation as set-uid program. 2010-03-17 11:02:08 -07:00
package.c Extend run-as with optional --user argument. 2015-06-10 12:09:10 -07:00
package.h Extend run-as with optional --user argument. 2015-06-10 12:09:10 -07:00
run-as.c Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00