Home | History | Annotate | Download | only in os

Lines Matching refs:peer

66      * mSocket is retained in the child process in "peer wait" mode, so
68 * it is closed in the peer.
73 private final Credentials peer;
97 peer = mSocket.getPeerCredentials();
99 Log.e(TAG, "Cannot read peer credentials", ex);
180 applyUidSecurityPolicy(parsedArgs, peer);
181 applyInvokeWithSecurityPolicy(parsedArgs, peer);
749 * @param peer non-null; peer credentials
752 private static void applyUidSecurityPolicy(Arguments args, Credentials peer)
755 if (peer.getUid() == Process.SYSTEM_UID) {
768 // If not otherwise specified, uid and gid are inherited from peer
770 args.uid = peer.getUid();
774 args.gid = peer.getGid();
804 * @param peer non-null; peer credentials
807 private static void applyInvokeWithSecurityPolicy(Arguments args, Credentials peer)
809 int peerUid = peer.getUid();
813 throw new ZygoteSecurityException("Peer is permitted to specify an"
998 // Try to move the new child into the peer's process group.
1000 Os.setpgid(pid, Os.getpgid(peer.getPid()));
1003 // the peer is not in our session
1005 // getsid(0) != getsid(peer.getPid())
1007 + "normal if peer is not in our session");