Debian Codegraph @

include/db_config.h

raw symbols SCIP
1 /*
2 * AIDE (Advanced Intrusion Detection Environment)
3 *
4 * Copyright (C) 1999-2002, 2004-2006, 2010-2013, 2015-2016, 2019-2024
5 * Rami Lehti, Pablo Virolainen, Richard van den Berg,
6 * Hannes von Haugwitz
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
23 #ifndef _DB_CONFIG_H_INCLUDED
24 #define _DB_CONFIG_H_INCLUDEDcxx . . $ `include/db_config.h:24:9`!
25
26 #include "config.h"cxx . . $ `<file>/include/config.h`/
27 #define PCRE2_CODE_UNIT_WIDTHcxx . . $ `include/db_config.h:27:9`! 8
28 #include <pcre2.h>
29 #include <stdbool.h>
30 #include <sys/types.h>
31 #ifdef WITH_ZLIBcxx . . $ `include/config.h:266:9`!
32 #include <zlib.h>
33 #endif
34 #include "attributes.h"cxx . . $ `<file>/include/attributes.h`/
35 #include "db_line.h"cxx . . $ `<file>/include/db_line.h`/
36 #include "list.h"cxx . . $ `<file>/include/list.h`/
37 #include "report.h"cxx . . $ `<file>/include/report.h`/
38 #include "file.h"cxx . . $ `<file>/include/file.h`/
39 #include "rx_rule.h"cxx . . $ `<file>/include/rx_rule.h`/
40 #include "url.h"cxx . . $ `<file>/include/url.h`/
41
42
43 #define E2Ocxx . . $ `include/db_config.h:43:9`!(n) (1<<n)
44
45 #define RETOKcxx . . $ `include/db_config.h:45:9`! 0
46 #define RETFAILcxx . . $ `include/db_config.h:46:9`! -1
47
48 #define DO_INITcxx . . $ `include/db_config.h:48:9`! (1<<0)
49 #define DO_COMPAREcxx . . $ `include/db_config.h:49:9`! (1<<1)
50 #define DO_DIFFcxx . . $ `include/db_config.h:50:9`! (1<<2)
51 #define DO_DRY_RUNcxx . . $ `include/db_config.h:51:9`! (1<<3)
52 #define DO_LISTcxx . . $ `include/db_config.h:52:9`! (1<<4)
53
54 /* TIMEBUFSIZE should be exactly ceil(sizeof(time_t)*8*ln(2)/ln(10))
55 * Now it is ceil(sizeof(time_t)*2.5)
56 * And of course we add one for end of string char
57 */
58
59 #define TIMEBUFSIZEcxx . . $ `include/db_config.h:59:9`! (((sizeof(time_t)*5+1)>>1)+1)
60
61
62 /*
63 New db_config
64 Not used yet, maybe someday.
65 */
66
67 /* typedef struct _db_config { */
68 /* url_t* url; */
69 /* config* conf; */
70 /* int inout; */
71 /* int (*init)(url*,int,config*); */
72 /* char** (*readline)(_db_config*); */
73 /* int (*writeline)(_db_config*,db_line* line); */
74 /* int (*close)(_db_config*); */
75 /* int db_size; */
76 /* DB_FIELD* db_order; */
77 /* void* local; */
78 /* }_db_config ; */
79
80 typedef enumcxx . . $ $anonymous_type_df65586e3c3763dd_0# {
81 DB_FLAG_NONEcxx . . $ DB_FLAG_NONE. =0,
82 DB_FLAG_CREATEDcxx . . $ DB_FLAG_CREATED. =1,
83 DB_FLAG_PARSEcxx . . $ DB_FLAG_PARSE. =2,
84 } DB_FLAGcxx . . $ DB_FLAG#;
85
86 typedef struct databasecxx . . $ database# {
87 url_tcxx . . $ url_t#* urlcxx . . $ database#url.;
88
89 char *filenamecxx . . $ database#filename.;
90 int linenumbercxx . . $ database#linenumber.;
91 char *linebufcxx . . $ database#linebuf.;
92
93 void *fpcxx . . $ database#fp.;
94 #ifdef WITH_ZLIBcxx . . $ `./include/config.h:266:9`!
95 gzFilecxx . . $ gzFile# gzpcxx . . $ database#gzp.;
96 #endif
97
98 long linenocxx . . $ database#lineno.;
99 ATTRIBUTEcxx . . $ ATTRIBUTE#* fieldscxx . . $ database#fields.;
100 int num_fieldscxx . . $ database#num_fields.;
101 struct md_containercxx . . $ md_container# *mdccxx . . $ database#mdc.;
102 struct db_linecxx . . $ db_line# *db_linecxx . . $ database#db_line.;
103
104 DB_FLAGcxx . . $ DB_FLAG# flagscxx . . $ database#flags.;
105
106 } databasecxx . . $ database#;
107
108 typedef struct db_configcxx . . $ db_config# {
109 char *hostnamecxx . . $ db_config#hostname.;
110
111 databasecxx . . $ database# database_incxx . . $ db_config#database_in.;
112 databasecxx . . $ database# database_outcxx . . $ db_config#database_out.;
113 databasecxx . . $ database# database_newcxx . . $ db_config#database_new.;
114
115 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! db_attrscxx . . $ db_config#db_attrs.;
116
117 #ifdef WITH_ZLIBcxx . . $ `./include/config.h:266:9`!
118 /* Is dbout gzipped or not */
119 int gzip_dboutcxx . . $ db_config#gzip_dbout.;
120
121 #endif
122
123 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! db_out_attrscxx . . $ db_config#db_out_attrs.;
124
125 file_tcxx . . $ file_t# check_filecxx . . $ db_config#check_file.;
126
127 char* config_filecxx . . $ db_config#config_file.;
128 char* config_versioncxx . . $ db_config#config_version.;
129 char* aide_versioncxx . . $ db_config#aide_version.;
130 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! config_check_warn_unrestricted_rulescxx . . $ db_config#config_check_warn_unrestricted_rules.;
131
132 int database_add_metadatacxx . . $ db_config#database_add_metadata.;
133 int report_detailed_initcxx . . $ db_config#report_detailed_init.;
134 int report_base16cxx . . $ db_config#report_base16.;
135 int report_quietcxx . . $ db_config#report_quiet.;
136 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! report_appendcxx . . $ db_config#report_append.;
137
138 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! report_ignore_added_attrscxx . . $ db_config#report_ignore_added_attrs.;
139 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! report_ignore_removed_attrscxx . . $ db_config#report_ignore_removed_attrs.;
140 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! report_ignore_changed_attrscxx . . $ db_config#report_ignore_changed_attrs.;
141 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! report_force_attrscxx . . $ db_config#report_force_attrs.;
142
143 #ifdef WITH_E2FSATTRS
144 unsigned long report_ignore_e2fsattrs;
145 #endif
146
147 listcxx . . $ list#* report_urlscxx . . $ db_config#report_urls.;
148 REPORT_LEVELcxx . . $ REPORT_LEVEL# report_levelcxx . . $ db_config#report_level.;
149 REPORT_FORMATcxx . . $ REPORT_FORMAT# report_formatcxx . . $ db_config#report_format.;
150
151 /* defsyms is a list of symba*s */
152 listcxx . . $ list#* defsymscxx . . $ db_config#defsyms.;
153 /* so is groupsyms */
154 listcxx . . $ list#* groupsymscxx . . $ db_config#groupsyms.;
155
156 /* What are we supposed to do */
157 int actioncxx . . $ db_config#action.;
158
159 long num_workerscxx . . $ db_config#num_workers.;
160
161 int progresscxx . . $ db_config#progress.;
162 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! no_colorcxx . . $ db_config#no_color.;
163
164 time_tcxx . . $ time_t# start_timecxx . . $ db_config#start_time.;
165 time_tcxx . . $ time_t# end_timecxx . . $ db_config#end_time.;
166
167 int symlinks_foundcxx . . $ db_config#symlinks_found.;
168 DB_ATTR_TYPEcxx . . $ `include/attributes.h:25:9`! attrcxx . . $ db_config#attr.;
169
170 #ifdef WITH_ACL
171 int no_acl_on_symlinks;
172 #endif
173 int warn_dead_symlinkscxx . . $ db_config#warn_dead_symlinks.;
174
175 int report_groupedcxx . . $ db_config#report_grouped.;
176
177 int report_summarize_changescxx . . $ db_config#report_summarize_changes.;
178
179 char* root_prefixcxx . . $ db_config#root_prefix.;
180 int root_prefix_lengthcxx . . $ db_config#root_prefix_length.;
181
182 char* limitcxx . . $ db_config#limit.;
183 pcre2_codecxx . . $ pcre2_code_8#* limit_crxcxx . . $ db_config#limit_crx.;
184 pcre2_match_datacxx . . $ `<external>/9988290459910441303/pcre2.h:901:9`!* limit_mdcxx . . $ db_config#limit_md.;
185
186 struct seltreecxx . . $ seltree#* treecxx . . $ db_config#tree.;
187
188 int print_details_widthcxx . . $ db_config#print_details_width.;
189
190 } db_configcxx . . $ db_config#;
191
192 #endif