// Construct a running process representation
//
ProcessCode::ProcessCode(pid_t pid, const audit_token_t* token, PidDiskRep *pidDiskRep /*= NULL */)
- : GenericCode(KernelCode::active()), mPid(pid), mPidBased(pidDiskRep)
+ : SecCode(KernelCode::active()), mPid(pid), mPidBased(pidDiskRep)
{
if (token)
mAudit = new audit_token_t(*token);
}
-mach_port_t ProcessCode::getHostingPort()
-{
- return SecurityServer::ClientSession().hostingPort(pid());
-}
-
-
int ProcessCode::csops(unsigned int ops, void *addr, size_t size)
{
// pass pid and audit token both if we have it, or just the pid if we don't