(file) Return to Executor.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Executor.cpp between version 1.25 and 1.26

version 1.25, 2010/10/29 05:29:50 version 1.26, 2012/12/13 14:38:55
Line 531 
Line 531 
         return -1;         return -1;
     }     }
  
     virtual int reapProviderAgent(  #if defined(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)
         int pid)      virtual int reapProviderAgent(int)
     {     {
 #if !defined(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)          // Out-of-Process providers are never started by the cimserver process
           // when Privilege Separation is enabled.
         int status = 0;          return -1;
       }
   #else  /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION is NOT defined */
 # if defined(PEGASUS_HAS_SIGNALS) # if defined(PEGASUS_HAS_SIGNALS)
 #  if defined(PEGASUS_DISABLE_PROV_USERCTXT) || defined(PEGASUS_OS_ZOS) #  if defined(PEGASUS_DISABLE_PROV_USERCTXT) || defined(PEGASUS_OS_ZOS)
       virtual int reapProviderAgent(int pid)
       {
           int status = 0;
         // When provider user context is enabled, this is done in         // When provider user context is enabled, this is done in
         // startProviderAgent().         // startProviderAgent().
         while ((status = waitpid(pid, 0, 0)) == -1 && errno == EINTR)         while ((status = waitpid(pid, 0, 0)) == -1 && errno == EINTR)
             ;          {
           };
           return status;
       }
   #  else
       virtual int reapProviderAgent(int)
       {
           return 0;
       }
 #  endif #  endif
 # endif # endif
   
         return status;  
   
 #else /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION is defined */  
   
         // Out-of-Process providers are never started by the cimserver process  
         // when Privilege Separation is enabled.  
         return -1;  
   
 #endif #endif
     }  
  
   
   #if defined(PEGASUS_PAM_AUTHENTICATION)
     virtual int authenticatePassword(     virtual int authenticatePassword(
         const char* username,         const char* username,
         const char* password)         const char* password)
     {     {
 #if defined(PEGASUS_PAM_AUTHENTICATION)  
         return PAMAuthenticate(username, password);         return PAMAuthenticate(username, password);
 #else  
         // ATTN: not handled so don't call in this case.  
         return -1;  
 #endif  
     }     }
  
     virtual int validateUser(     virtual int validateUser(
         const char* username)         const char* username)
     {     {
 #if defined(PEGASUS_PAM_AUTHENTICATION)  
         return PAMValidateUser(username);         return PAMValidateUser(username);
       }
 #else #else
       virtual int authenticatePassword(
           const char*,
           const char*)
       {
         // ATTN: not handled so don't call in this case.         // ATTN: not handled so don't call in this case.
         return -1;         return -1;
 #endif  
     }     }
  
       virtual int validateUser(
           const char*)
       {
           // ATTN: not handled so don't call in this case.
           return -1;
       }
   #endif
   
     virtual int challengeLocal(     virtual int challengeLocal(
         const char* username,          const char*,
         char challengeFilePath[EXECUTOR_BUFFER_SIZE])          char[EXECUTOR_BUFFER_SIZE])
     {     {
         // ATTN: not handled so don't call in this case.         // ATTN: not handled so don't call in this case.
         return -1;         return -1;
     }     }
  
     virtual int authenticateLocal(     virtual int authenticateLocal(
         const char* challengeFilePath,          const char*,
         const char* response)          const char*)
     {     {
         // ATTN: not handled so don't call in this case.         // ATTN: not handled so don't call in this case.
         return -1;         return -1;
     }     }
  
     virtual int updateLogLevel(     virtual int updateLogLevel(
         const char* logLevel)          const char*)
     {     {
         // If Privilege Separation is not enabled, we don't need to update         // If Privilege Separation is not enabled, we don't need to update
         // the log level in the Executor.         // the log level in the Executor.


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2