forked from linux-audit/audit-userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauparse-idata.h
More file actions
54 lines (47 loc) · 1.9 KB
/
Copy pathauparse-idata.h
File metadata and controls
54 lines (47 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* idata.h - Header file for ausearch-lookup.c
* Copyright (c) 2013,2016-17,2021 Red Hat Inc.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* Steve Grubb <sgrubb@redhat.com>
*/
#ifndef IDATA_HEADER
#define IDATA_HEADER
#include "config.h"
#include "dso.h"
#include "auparse.h"
#include "auparse-defs.h"
typedef struct _idata {
unsigned int machine; // The machine type for the event
int syscall; // The syscall for the event
unsigned long long a0; // arg 0 to the syscall
unsigned long long a1; // arg 1 to the syscall
const char *cwd; // The current working directory
const char *name; // name of field being interpreted
const char *val; // value of field being interpreted
} idata;
#define NEVER_LOADED 0xFFFF
int auparse_interp_adjust_type(int rtype, const char *name, const char *val);
char *auparse_do_interpretation(auparse_state_t *au, int type, const idata *id,
auparse_esc_t escape_mode);
void _auparse_load_interpretations(auparse_state_t *au, const char *buf);
void _auparse_free_interpretations(auparse_state_t *au);
const char *_auparse_lookup_interpretation(auparse_state_t *au,
const char *name) __attribute_malloc__ __attr_dealloc_free;
void _auparse_flush_caches(auparse_state_t *au);
#endif