|
clsync
|
#include "common.h"#include "malloc.h"#include "error.h"#include "indexes.h"#include "sync.h"#include "mon_bsm.h"#include <bsm/libbsm.h>#include <bsm/audit_kevents.h>#include <glib.h>#include <sys/ioctl.h>#include <security/audit/audit_ioctl.h>
Go to the source code of this file.
Data Structures | |
| struct | bsm_event |
| struct | mondata |
| struct | recognize_event_return |
Macros | |
| #define | BSM_INIT_ERROR |
| #define | INFINITETIME (3600 * 24 * 365 * 10) /* ~10 years */ |
Typedefs | |
| typedef struct mondata | mondata_t |
| typedef enum bsm_handletype | bsm_handletype_t |
Enumerations | |
| enum | event_bits { UEM_DIR = 0x01 , UEM_CREATED = 0x02 , UEM_DELETED = 0x04 } |
| enum | bsm_handle_type { BSM_HANDLER_CALLWAIT , BSM_HANDLER_ITERATE } |
| enum | bsm_handletype { BSM_HANDLE_CALLWAIT , BSM_HANDLE_ITERATE } |
Functions | |
| int | bsm_prefetcher (struct ctx *ctx_p) |
| int | bsm_wait_prefetched (struct ctx *ctx_p, struct indexes *indexes_p, struct timeval *timeout_p) |
| int | bsm_wait_noprefetch (struct ctx *ctx_p, struct indexes *indexes_p, struct timeval *timeout_p) |
| int | bsm_handle_prefetched (struct ctx *ctx_p, struct indexes *indexes_p) |
| int | bsm_handle_noprefetch (struct ctx *ctx_p, struct indexes *indexes_p) |
| static void | recognize_event (struct recognize_event_return *r, uint32_t event) |
| int | auditd_restart () |
| int | bsm_config_backup (mondata_t *mondata) |
| int | bsm_config_setup (mondata_t *mondata) |
| int | bsm_init (ctx_t *ctx_p) |
| int | select_rfd (int fd, struct timeval *timeout_p) |
| int | bsm_fetch (ctx_t *ctx_p, indexes_t *indexes_p, struct bsm_event *event_p, int pipe_fd, struct timeval *timeout_p, struct timeval *timeout_abs_p) |
| int | bsm_handle_allevents (struct ctx *ctx_p, struct indexes *indexes_p, bsm_handletype_t how) |
| void | bsm_prefetcher_sig_int (int signal) |
| int | bsm_add_watch_dir (struct ctx *ctx_p, struct indexes *indexes_p, const char *const accpath) |
| int | bsm_deinit (ctx_t *ctx_p) |
Variables | |
| pthread_t | prefetcher_thread |
| pthread_mutex_t | bsm_mutex_prefetcher = PTHREAD_MUTEX_INITIALIZER |
| pthread_cond_t | bsm_cond_gotevent = PTHREAD_COND_INITIALIZER |
| pthread_cond_t | bsm_cond_queueend = PTHREAD_COND_INITIALIZER |
| int | bsm_queue_len |
| int(* | bsm_wait )(struct ctx *ctx_p, struct indexes *indexes_p, struct timeval *timeout_p) |
| int(* | bsm_handle )(struct ctx *ctx_p, struct indexes *indexes_p) |
| return | |
| static int | bsm_prefetcher_running = 2 |
| #define BSM_INIT_ERROR |
| #define INFINITETIME (3600 * 24 * 365 * 10) /* ~10 years */ |
| typedef enum bsm_handletype bsm_handletype_t |
| enum bsm_handle_type |
| enum bsm_handletype |
| enum event_bits |
| int auditd_restart | ( | ) |
| int bsm_config_backup | ( | mondata_t * | mondata | ) |
| int bsm_config_setup | ( | mondata_t * | mondata | ) |
| int bsm_deinit | ( | ctx_t * | ctx_p | ) |
| int bsm_handle_allevents | ( | struct ctx * | ctx_p, |
| struct indexes * | indexes_p, | ||
| bsm_handletype_t | how ) |
| int bsm_init | ( | ctx_t * | ctx_p | ) |
|
extern |
| void bsm_prefetcher_sig_int | ( | int | signal | ) |
|
inlinestatic |
| int select_rfd | ( | int | fd, |
| struct timeval * | timeout_p ) |
| pthread_cond_t bsm_cond_gotevent = PTHREAD_COND_INITIALIZER |
| pthread_cond_t bsm_cond_queueend = PTHREAD_COND_INITIALIZER |
| pthread_mutex_t bsm_mutex_prefetcher = PTHREAD_MUTEX_INITIALIZER |