Open SCAP Library
Data Structures | Defines | Functions | Variables
/home/pvrabec/project/openscap/openscap-0.7.3/src/OVAL/probes/unix/file.c File Reference

file probe More...

#include <seap.h>
#include <probe-api.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <pthread.h>
#include <errno.h>
#include <limits.h>
#include "oval_fts.h"
#include "SEAP/generic/rbt/rbt.h"

Data Structures

struct  cbargs

Defines

#define PATH_MAX   4096
#define MODEP(statp, bit)   ((statp)->st_mode & (bit) ? gr_true : gr_false)
#define STR_REGULAR   "regular"
#define STR_DIRECTORY   "directory"
#define STR_SYMLINK   "symbolic link"
#define STR_BLKSPEC   "block special"
#define STR_FIFO   "fifo"
#define STR_SOCKET   "socket"
#define STR_CHARSPEC   "character special"
#define STRLEN_PAIR(str)   (str), strlen(str)

Functions

void * probe_init (void)
 Dummy probe_fini function.
void probe_fini (void *arg)
 Dummy probe_fini function.
int probe_main (SEXP_t *probe_in, SEXP_t *probe_out, void *mutex, SEXP_t *filters)

Variables

static SEXP_tgr_false = NULL
static SEXP_tgr_t_reg = NULL
static SEXP_tgr_t_lnk = NULL
static SEXP_tgr_t_blk = NULL
static SEXP_tgr_t_sock = NULL
static SEXP_tgr_t_char = NULL

Detailed Description

file probe

Author:
"Daniel Kopecek" <dkopecek@redhat.com>

2010/06/13 dkopecek@redhat.com This probe is able to process a file_object as defined in OVAL 5.4 and 5.5.