OSDN Git Service

DO NOT MERGE: dumpstate: execute procrank using su
authorNick Kralevich <nnk@google.com>
Wed, 7 Oct 2015 23:38:42 +0000 (16:38 -0700)
committerSteve Kondik <steve@cyngn.com>
Wed, 20 Jul 2016 11:16:16 +0000 (04:16 -0700)
commitc91bafb88a3abf50c369637caf79fb027b48c46e
treea0191076f90d699a390a318f1f4276f6b1061a53
parent179bd77ab69361f3f26a50e01781be9cad78a4d1
DO NOT MERGE: dumpstate: execute procrank using su

procrank is a setuid binary which only exists on userdebug/eng
builds. Instead of executing the setuid binary, run the binary using
the su command. This eliminates one more setuid binary, and allows
the tightening of the SELinux policy.

Bug: 18342188

(cherry picked from commit 2b1f88b6ac78e330ff006da6fecf8bc9d976ec67)
Bug: 25951005

Change-Id: I90c86f89974b3878273a29277b2a5d5d7c4b81c7
cmds/dumpstate/dumpstate.c