With this commit, IPC handler can access peer credentials with out
rmi::Service instance.
Note: Peer credentials are maintained in static thread local storage.
Change-Id: Iec7ff64297180c86a4f7eb118b160b6e53740c2c
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
template <typename... Args>
void notify(const std::string& name, Args&&... args);
- pid_t getPeerPid() const
+ static pid_t getPeerPid()
{
return processingContext.credentials.pid;
}
- uid_t getPeerUid() const
+ static uid_t getPeerUid()
{
return processingContext.credentials.uid;
}
- gid_t getPeerGid() const
+ static gid_t getPeerGid()
{
return processingContext.credentials.gid;
}