]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_codesigning/lib/csprocess.h
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / lib / csprocess.h
index 1e38473b944a6e57a4d729796df4f1435ed76e6a..0d717e556a49c62fef135280c4354b43e4b2d258 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef _H_CSPROCESS
 #define _H_CSPROCESS
 
-#include "csgeneric.h"
+#include "Code.h"
 #include "StaticCode.h"
 #include "piddiskrep.h"
 #include <security_utilities/utilities.h>
@@ -38,15 +38,12 @@ namespace CodeSigning {
 
 //
 // A SecCode that represents a running UNIX process.
-// Processes are identified by pid.
+// Processes are identified by pid and audit token.
 //
-// ProcessCode inherits GenericCode's access to the cshosting Mach protocol to
-// deal with guests.
-//
-class ProcessCode : public GenericCode {
+class ProcessCode : public SecCode {
 public:
        ProcessCode(pid_t pid, const audit_token_t* token, PidDiskRep *pidDiskRep = NULL);
-       ~ProcessCode() throw () { delete mAudit; }
+       ~ProcessCode() _NOEXCEPT { delete mAudit; }
        
        pid_t pid() const { return mPid; }
        const audit_token_t* audit() const { return mAudit; }
@@ -55,8 +52,6 @@ public:
        
        int csops(unsigned int ops, void *addr, size_t size);
 
-       mach_port_t getHostingPort();
-
 private:
        pid_t mPid;
        audit_token_t* mAudit;