#include "config.h"
#include <sys/types.h>
#include <sys/param.h>
#include <syslog.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include "daemon.h"
#include "daemon_util.h"
#include "privdrop.h"
#include "ksm/ksm.h"
#include "ksm/dbsmsg.h"
#include "ksm/dbsdef.h"
#include "ksm/kmemsg.h"
#include "ksm/kmedef.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
Go to the source code of this file.
Defines | |
#define | MAXPATHLEN 4096 |
Functions | |
int | server_init (DAEMONCONFIG *config) |
void | server_main (DAEMONCONFIG *config) |
void | sig_handler (int sig) |
void | exit_function (void) |
int | main (int argc, char *argv[]) |
Variables | |
DAEMONCONFIG | config |
void exit_function | ( | void | ) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 107 of file daemon.c.
References cmdlParse(), createPidDir(), DBS_MAX_VALUE, DBS_MIN_VALUE, DAEMONCONFIG::debug, DAEMONCONFIG::DSSubmitCmd, exit_function(), getPermsForDrop(), DAEMONCONFIG::gid, DAEMONCONFIG::groupname, DAEMONCONFIG::host, KME_MAX_VALUE, KME_MIN_VALUE, ksm_log_msg(), log_init(), log_msg(), DAEMONCONFIG::log_user, MAX_PASSWORD_LENGTH, MAX_SCHEMA_LENGTH, MAX_USER_LENGTH, MAXPATHLEN, MsgInit(), MsgRegister(), MsgRundown(), DAEMONCONFIG::once, DAEMONCONFIG::password, DAEMONCONFIG::pid, DAEMONCONFIG::pidfile, DAEMONCONFIG::port, privdrop(), DAEMONCONFIG::program, DAEMONCONFIG::schema, server_init(), server_main(), StrFree, DAEMONCONFIG::term, DAEMONCONFIG::uid, DAEMONCONFIG::user, DAEMONCONFIG::username, and writepid().
int server_init | ( | DAEMONCONFIG * | config | ) |
Definition at line 63 of file enforcer.c.
Referenced by main().
void server_main | ( | DAEMONCONFIG * | config | ) |
Definition at line 82 of file enforcer.c.
Referenced by main().
void sig_handler | ( | int | sig | ) |
Definition at line 76 of file daemon.c.
References DAEMONCONFIG::term.
Definition at line 73 of file daemon.c.
Referenced by cmd_exportkeys(), cmd_genkeys(), CountKeys(), get_conf_key_info(), get_db_details(), ListKeys(), main(), PurgeKeys(), read_filenames(), read_zonelist_filename(), and update_repositories().