Home
last modified time | relevance | path

Searched refs:shell_gid (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp51 gid_t shell_gid = grp != nullptr ? grp->gr_gid : 0; in DropRootUser() local
55 if (!shell_gid || !shell_uid) { in DropRootUser()
60 if (getgid() == shell_gid && getuid() == shell_uid) { in DropRootUser()
88 if (setgid(shell_gid) != 0) { in DropRootUser()