]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_codesigning/lib/csprocess.h
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / lib / csprocess.h
index 1e38473b944a6e57a4d729796df4f1435ed76e6a..b0a370e42f43b6c412ca3d0097f5e0e82fb6bf50 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,12 +38,9 @@ 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; }
@@ -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;