#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 |
|
Definition at line 95 of file owlocalhelper_main.cpp. Referenced by main(). |
|
Definition at line 112 of file owlocalhelper_main.cpp. Referenced by processCreate(), processRemove(), and processStdin(). |
|
Definition at line 269 of file owlocalhelper_main.cpp. References checkRealUser(), INVALID_USER, NOT_SETUID_ROOT, processStdin(), SETRLIMIT_FAILED, and UNEXPECTED_EXCEPTION. |
|
Definition at line 213 of file owlocalhelper_main.cpp. References OW_NAMESPACE::FileSystem::createFile(), getLineFromStdin(), INVALID_INPUT, and SUCCESS. Referenced by processStdin(). |
|
Definition at line 150 of file owlocalhelper_main.cpp. References getLineFromStdin(), INVALID_INPUT, and OW_FILENAME_SEPARATOR. Referenced by processStdin(). |
|
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(). |
|
Definition at line 90 of file owlocalhelper_main.cpp. Referenced by processCreate(), processRemove(), and processStdin(). |
|
Definition at line 88 of file owlocalhelper_main.cpp. Referenced by main(). |
|
Definition at line 89 of file owlocalhelper_main.cpp. Referenced by main(). |
|
Definition at line 83 of file owlocalhelper_main.cpp. |
|
Definition at line 91 of file owlocalhelper_main.cpp. |
|
Definition at line 93 of file owlocalhelper_main.cpp. Referenced by main(). |
|
Definition at line 85 of file owlocalhelper_main.cpp. Referenced by processCreate(), and processStdin(). |
|
Definition at line 92 of file owlocalhelper_main.cpp. Referenced by main(). |