Debian Codegraph @

src/OVAL/probes/probe/probe.h

raw symbols SCIP
1 /*
2 * Copyright 2011 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * Daniel Kopecek <[email protected]>
21 */
22 #ifndef PROBE_H
23 #define PROBE_Hcxx . . $ `src/OVAL/probes/probe/probe.h:23:9`!
24
25 #include "oscap_platforms.h"cxx . . $ `<file>/compat/oscap_platforms.h`/
26
27 #include <sys/types.h>
28 #ifdef OS_WINDOWS
29 #include <io.h>
30 #else
31 #include <unistd.h>
32 #endif
33 #include <stdint.h>
34 #include <stddef.h>
35 #include <stdarg.h>
36 #include <pthread.h>
37 #include "_seap.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/_seap.h`/
38 #include "ncache.h"cxx . . $ `<file>/src/OVAL/probes/probe/ncache.h`/
39 #include "rcache.h"cxx . . $ `<file>/src/OVAL/probes/probe/rcache.h`/
40 #include "icache.h"cxx . . $ `<file>/src/OVAL/probes/probe/icache.h`/
41 #include "probe-common.h"cxx . . $ `<file>/src/OVAL/probes/public/probe-common.h`/
42 #include "option.h"cxx . . $ `<file>/src/OVAL/probes/probe/option.h`/
43 #include "common/util.h"cxx . . $ `<file>/src/common/util.h`/
44 #include "common/compat_pthread_barrier.h"cxx . . $ `<file>/src/common/compat_pthread_barrier.h`/
45
46 /* default max. memory usage ratio - used/total */
47 /* can be overridden by environment variable OSCAP_PROBE_MEMORY_USAGE_RATIO */
48 #define OSCAP_PROBE_MEMORY_USAGE_RATIO_DEFAULTcxx . . $ `src/OVAL/probes/probe/probe.h:48:9`! 0.33
49
50 /* By default, probes can collect unlimited amount of items. Ths behavior can
51 * be overridden by environment variable OSCAP_PROBE_MAX_COLLECTED_ITEMS.
52 */
53 #define OSCAP_PROBE_COLLECT_UNLIMITEDcxx . . $ `src/OVAL/probes/probe/probe.h:53:9`! 0
54
55 typedef structcxx . . $ $anonymous_type_3aeea60fe9979420_0# {
56 pthread_rwlock_tcxx . . $ pthread_rwlock_t# rwlockcxx . . $ $anonymous_type_3aeea60fe9979420_0#rwlock.;
57 uint32_tcxx . . $ uint32_t# flagscxx . . $ $anonymous_type_3aeea60fe9979420_0#flags.;
58
59 pid_tcxx . . $ pid_t# pidcxx . . $ $anonymous_type_3aeea60fe9979420_0#pid.;
60
61 void *probe_argcxx . . $ $anonymous_type_3aeea60fe9979420_0#probe_arg.;
62 int probe_exitcodecxx . . $ $anonymous_type_3aeea60fe9979420_0#probe_exitcode.;
63
64 SEAP_CTX_tcxx . . $ SEAP_CTX_t# *SEAP_ctxcxx . . $ $anonymous_type_3aeea60fe9979420_0#SEAP_ctx.; /**< SEAP context */
65 int sdcxx . . $ $anonymous_type_3aeea60fe9979420_0#sd.; /**< SEAP descriptor */
66
67 pthread_tcxx . . $ pthread_t# th_inputcxx . . $ $anonymous_type_3aeea60fe9979420_0#th_input.;
68 pthread_tcxx . . $ pthread_t# th_signalcxx . . $ $anonymous_type_3aeea60fe9979420_0#th_signal.;
69 pthread_barrier_tcxx . . $ pthread_barrier_t# *th_barriercxx . . $ $anonymous_type_3aeea60fe9979420_0#th_barrier.;
70
71 rbt_tcxx . . $ rbt_t# *workerscxx . . $ $anonymous_type_3aeea60fe9979420_0#workers.;
72 uint32_tcxx . . $ uint32_t# max_threadscxx . . $ $anonymous_type_3aeea60fe9979420_0#max_threads.;
73 uint32_tcxx . . $ uint32_t# max_chdepthcxx . . $ $anonymous_type_3aeea60fe9979420_0#max_chdepth.;
74
75 probe_rcache_tcxx . . $ probe_rcache_t# *rcachecxx . . $ $anonymous_type_3aeea60fe9979420_0#rcache.; /**< probe result cache */
76 probe_ncache_tcxx . . $ probe_ncache_t# *ncachecxx . . $ $anonymous_type_3aeea60fe9979420_0#ncache.; /**< probe name cache */
77 probe_icache_tcxx . . $ probe_icache_t# *icachecxx . . $ $anonymous_type_3aeea60fe9979420_0#icache.; /**< probe item cache */
78
79 probe_option_tcxx . . $ probe_option_t# *optioncxx . . $ $anonymous_type_3aeea60fe9979420_0#option.; /**< probe option handlers */
80 size_tcxx . . $ size_t# optcntcxx . . $ $anonymous_type_3aeea60fe9979420_0#optcnt.; /**< number of defined options */
81 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! offline_modecxx . . $ $anonymous_type_3aeea60fe9979420_0#offline_mode.;
82 int supported_offline_modecxx . . $ $anonymous_type_3aeea60fe9979420_0#supported_offline_mode.;
83 int selected_offline_modecxx . . $ $anonymous_type_3aeea60fe9979420_0#selected_offline_mode.;
84 oval_subtype_tcxx . . $ oval_subtype_t# subtypecxx . . $ $anonymous_type_3aeea60fe9979420_0#subtype.;
85
86 int real_root_fdcxx . . $ $anonymous_type_3aeea60fe9979420_0#real_root_fd.;
87 int real_cwd_fdcxx . . $ $anonymous_type_3aeea60fe9979420_0#real_cwd_fd.;
88 } probe_tcxx . . $ probe_t#;
89
90 struct probe_ctxcxx . . $ probe_ctx# {
91 SEXP_tcxx . . $ SEXP_t# *probe_incxx . . $ probe_ctx#probe_in.; /**< S-exp representation of the input object */
92 SEXP_tcxx . . $ SEXP_t# *probe_outcxx . . $ probe_ctx#probe_out.; /**< collected object */
93 SEXP_tcxx . . $ SEXP_t# *filterscxx . . $ probe_ctx#filters.; /**< object filters (OVAL 5.8 and higher) */
94 probe_icache_tcxx . . $ probe_icache_t# *icachecxx . . $ probe_ctx#icache.; /**< item cache */
95 int offline_modecxx . . $ probe_ctx#offline_mode.;
96 double max_mem_ratiocxx . . $ probe_ctx#max_mem_ratio.;
97 size_tcxx . . $ size_t# collected_itemscxx . . $ probe_ctx#collected_items.;
98 size_tcxx . . $ size_t# max_collected_itemscxx . . $ probe_ctx#max_collected_items.;
99 struct oscap_listcxx . . $ oscap_list# *blocked_pathscxx . . $ probe_ctx#blocked_paths.;
100 };
101
102 typedef enumcxx . . $ $anonymous_type_3aeea60fe9979420_1# {
103 PROBE_OFFLINE_NONEcxx . . $ PROBE_OFFLINE_NONE. = 0x00,
104 PROBE_OFFLINE_CHROOTcxx . . $ PROBE_OFFLINE_CHROOT. = 0x01,
105 PROBE_OFFLINE_OWNcxx . . $ PROBE_OFFLINE_OWN. = 0x04,
106 PROBE_OFFLINE_ALLcxx . . $ PROBE_OFFLINE_ALL. = 0x0f
107 } probe_offline_flagscxx . . $ probe_offline_flags#;
108
109 #endif /* PROBE_H */