#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.
|
| 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) |
| |
◆ BSM_INIT_ERROR
◆ INFINITETIME
| #define INFINITETIME (3600 * 24 * 365 * 10) /* ~10 years */ |
◆ bsm_handletype_t
◆ mondata_t
◆ bsm_handle_type
| Enumerator |
|---|
| BSM_HANDLER_CALLWAIT | |
| BSM_HANDLER_ITERATE | |
Definition at line 56 of file mon_bsm.c.
◆ bsm_handletype
| Enumerator |
|---|
| BSM_HANDLE_CALLWAIT | |
| BSM_HANDLE_ITERATE | |
Definition at line 553 of file mon_bsm.c.
◆ event_bits
| Enumerator |
|---|
| UEM_DIR | |
| UEM_CREATED | |
| UEM_DELETED | |
Definition at line 50 of file mon_bsm.c.
◆ auditd_restart()
◆ bsm_add_watch_dir()
| int bsm_add_watch_dir |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
const char *const | accpath ) |
◆ bsm_config_backup()
◆ bsm_config_setup()
◆ bsm_deinit()
| int bsm_deinit |
( |
ctx_t * | ctx_p | ) |
|
◆ bsm_fetch()
| 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 ) |
◆ bsm_handle_allevents()
◆ bsm_handle_noprefetch()
| int bsm_handle_noprefetch |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p ) |
|
extern |
◆ bsm_handle_prefetched()
| int bsm_handle_prefetched |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p ) |
|
extern |
◆ bsm_init()
| int bsm_init |
( |
ctx_t * | ctx_p | ) |
|
◆ bsm_prefetcher()
| int bsm_prefetcher |
( |
struct ctx * | ctx_p | ) |
|
|
extern |
◆ bsm_prefetcher_sig_int()
| void bsm_prefetcher_sig_int |
( |
int | signal | ) |
|
◆ bsm_wait_noprefetch()
| int bsm_wait_noprefetch |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
struct timeval * | timeout_p ) |
|
extern |
◆ bsm_wait_prefetched()
| int bsm_wait_prefetched |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
struct timeval * | timeout_p ) |
|
extern |
◆ recognize_event()
◆ select_rfd()
| int select_rfd |
( |
int | fd, |
|
|
struct timeval * | timeout_p ) |
◆ bsm_cond_gotevent
| pthread_cond_t bsm_cond_gotevent = PTHREAD_COND_INITIALIZER |
◆ bsm_cond_queueend
| pthread_cond_t bsm_cond_queueend = PTHREAD_COND_INITIALIZER |
◆ bsm_handle
◆ bsm_mutex_prefetcher
| pthread_mutex_t bsm_mutex_prefetcher = PTHREAD_MUTEX_INITIALIZER |
◆ bsm_prefetcher_running
| int bsm_prefetcher_running = 2 |
|
static |
◆ bsm_queue_len
◆ bsm_wait
| int(* bsm_wait) (struct ctx *ctx_p, struct indexes *indexes_p, struct timeval *timeout_p) |
( |
struct ctx * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
struct timeval * | timeout_p ) |
◆ prefetcher_thread
| pthread_t prefetcher_thread |
◆ return