owlocalhelper_main.cpp File Reference

#include "OW_config.h"
#include "OW_String.hpp"
#include "OW_Array.hpp"
#include "OW_FileSystem.hpp"
#include "OW_Format.hpp"
#include "OW_LocalAuthenticationCommon.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include <sys/stat.h>
#include <cstring>
#include <cstdio>
#include <cerrno>
#include <ctime>
#include <iostream>

Include dependency graph for owlocalhelper_main.cpp:

Go to the source code of this file.

Namespaces

namespace  OpenWBEM::LocalAuthenticationCommon

Functions

bool checkRealUser ()
bool getLineFromStdin (String &line)
int processRemove ()
int processCreate ()
int processStdin ()
int main (int argc, char *argv[])

Variables

const char * OWCIMOMD_USER_STR = "owcimomd"
const int SUCCESS = 0
const int INVALID_USER = 2
const int NOT_SETUID_ROOT = 3
const int INVALID_INPUT = 4
const int REMOVE_FAILED = 5
const int UNEXPECTED_EXCEPTION = 6
const int SETRLIMIT_FAILED = 7


Function Documentation

bool @0::checkRealUser  )  [static]
 

Definition at line 95 of file owlocalhelper_main.cpp.

Referenced by main().

bool @0::getLineFromStdin String &  line  )  [static]
 

Definition at line 112 of file owlocalhelper_main.cpp.

Referenced by processCreate(), processRemove(), and processStdin().

int main int  argc,
char *  argv[]
 

Definition at line 269 of file owlocalhelper_main.cpp.

References checkRealUser(), INVALID_USER, NOT_SETUID_ROOT, processStdin(), SETRLIMIT_FAILED, and UNEXPECTED_EXCEPTION.

int @0::processCreate  )  [static]
 

Definition at line 213 of file owlocalhelper_main.cpp.

References OW_NAMESPACE::FileSystem::createFile(), getLineFromStdin(), INVALID_INPUT, and SUCCESS.

Referenced by processStdin().

int @0::processRemove  )  [static]
 

Definition at line 150 of file owlocalhelper_main.cpp.

References getLineFromStdin(), INVALID_INPUT, and OW_FILENAME_SEPARATOR.

Referenced by processStdin().

int @0::processStdin  )  [static]
 

Definition at line 236 of file owlocalhelper_main.cpp.

References OW_NAMESPACE::LocalAuthenticationCommon::CREATE_CMD, getLineFromStdin(), OW_NAMESPACE::LocalAuthenticationCommon::INITIALIZE_CMD, OW_NAMESPACE::LocalAuthenticationCommon::initializeDir(), INVALID_INPUT, processCreate(), processRemove(), OW_NAMESPACE::LocalAuthenticationCommon::REMOVE_CMD, and SUCCESS.

Referenced by main().


Variable Documentation

const int INVALID_INPUT = 4 [static]
 

Definition at line 90 of file owlocalhelper_main.cpp.

Referenced by processCreate(), processRemove(), and processStdin().

const int INVALID_USER = 2 [static]
 

Definition at line 88 of file owlocalhelper_main.cpp.

Referenced by main().

const int NOT_SETUID_ROOT = 3 [static]
 

Definition at line 89 of file owlocalhelper_main.cpp.

Referenced by main().

const char* OWCIMOMD_USER_STR = "owcimomd" [static]
 

Definition at line 83 of file owlocalhelper_main.cpp.

const int REMOVE_FAILED = 5 [static]
 

Definition at line 91 of file owlocalhelper_main.cpp.

const int SETRLIMIT_FAILED = 7 [static]
 

Definition at line 93 of file owlocalhelper_main.cpp.

Referenced by main().

const int SUCCESS = 0 [static]
 

Definition at line 85 of file owlocalhelper_main.cpp.

Referenced by processCreate(), and processStdin().

const int UNEXPECTED_EXCEPTION = 6 [static]
 

Definition at line 92 of file owlocalhelper_main.cpp.

Referenced by main().


Generated on Thu Feb 9 09:11:02 2006 for openwbem by  doxygen 1.4.6