Skyld AV  0.6
On access virus scanning for Linux
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
main.cc File Reference

Online virus scanner. More...

#include <sys/capability.h>
#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <signal.h>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <syslog.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "conf.h"
#include "config.h"
#include "Environment.h"
#include "FanotifyPolling.h"
#include "Messaging.h"
#include "skyldav.h"
#include "StringSet.h"
Include dependency graph for main.cc:

Go to the source code of this file.

Functions

static int configurationCallback (const char *key, const char *value, void *info)
 Callback function for reading configuration file. More...
 
static void hdl (int sig)
 Handles signal. More...
 
static void pidfile ()
 Creates pidfile for daemon. More...
 
static void help ()
 Prints help message and exits. More...
 
static void version ()
 Shows version information and exits. More...
 
static int capable (cap_value_t cap)
 Check if the process has a capability. More...
 
static void authcheck (Environment *e)
 Checks authorization. More...
 
static void daemonize (Environment *e)
 Daemonizes. More...
 
int main (int argc, char *argv[])
 Main. More...
 

Detailed Description

Online virus scanner.

Definition in file main.cc.

Function Documentation

static void authcheck ( Environment e)
static

Checks authorization.

Definition at line 202 of file main.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

static int capable ( cap_value_t  cap)
static

Check if the process has a capability.

Parameters
capcapability
Returns
1 if process has capability, else 0.

Definition at line 178 of file main.cc.

Here is the caller graph for this function:

static int configurationCallback ( const char *  key,
const char *  value,
void *  info 
)
static

Callback function for reading configuration file.

Parameters
keykey value
valueparameter value
Returns
success

Definition at line 53 of file main.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

static void daemonize ( Environment e)
static

Daemonizes.

Definition at line 215 of file main.cc.

Here is the caller graph for this function:

static void hdl ( int  sig)
static

Handles signal.

Parameters
sigsignal

Definition at line 114 of file main.cc.

Here is the caller graph for this function:

static void help ( )
static

Prints help message and exits.

Definition at line 158 of file main.cc.

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Main.

Parameters
argcargument count
argvarguments
Returns
success

Definition at line 268 of file main.cc.

Here is the call graph for this function:

static void pidfile ( )
static

Creates pidfile for daemon.

Definition at line 129 of file main.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

static void version ( )
static

Shows version information and exits.

Definition at line 166 of file main.cc.

Here is the caller graph for this function: