OpenDNSSEC-enforcer
1.4.7
|
#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.
Macros | |
#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 |
int | daemon_our_pidfile = 0 |
void exit_function | ( | void | ) |
Definition at line 101 of file daemon.c.
References daemon_our_pidfile, and DAEMONCONFIG::pidfile.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 110 of file daemon.c.
References cmdlParse(), createPidDir(), DBS_MAX_VALUE, DBS_MIN_VALUE, DAEMONCONFIG::debug, DEFAULT_LOG_FACILITY, 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::pidfile_set, DAEMONCONFIG::policy, DAEMONCONFIG::port, privdrop(), DAEMONCONFIG::program, DAEMONCONFIG::schema, server_init(), server_main(), sig_handler(), StrFree, DAEMONCONFIG::term, DAEMONCONFIG::uid, DAEMONCONFIG::user, and DAEMONCONFIG::username.
int server_init | ( | DAEMONCONFIG * | config | ) |
Definition at line 62 of file enforcer.c.
Referenced by main().
void server_main | ( | DAEMONCONFIG * | config | ) |
Definition at line 81 of file enforcer.c.
Referenced by main().
void sig_handler | ( | int | sig | ) |
DAEMONCONFIG config |
int daemon_our_pidfile = 0 |
Definition at line 98 of file daemon.c.
Referenced by exit_function(), and writepid().