The launchpad should check whether the caller is the executed process or
not. If it's not, we should reject the connection request.
Change-Id: I5d87310a3986bccedba2fe0c98383056d7ed5804
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
}
auto peer_cred = PeerCredentials::Get(client_socket_->GetFd());
- if (peer_cred->GetPid() != pid) {
- _E("The peer information does not match. %d : %d", peer_cred->GetPid(),
- pid);
+ if (peer_cred->GetPid() != pid || peer_cred->GetPid() != pid_) {
+ _E("The peer information does not match. %d : %d : %d",
+ peer_cred->GetPid(), pid, pid_);
client_socket_.reset();
return;
}