Debian Codegraph @

include/attributes.h

raw symbols SCIP
1 /*
2 * AIDE (Advanced Intrusion Detection Environment)
3 *
4 * Copyright (C) 1999-2002,2004,2006,2019-2020,2021,2023-2025 Rami Lehti,
5 * Pablo Virolainen, Richard van den Berg, Hannes von Haugwitz
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #ifndef _ATTRIBUTES_H_INCLUDED
23 #define _ATTRIBUTES_H_INCLUDED
24
25 #define DB_ATTR_TYPE unsigned long long
26 #define DB_ATTR_UNDEF ((DB_ATTR_TYPE) -1)
27
28 #define ATTR(attribute) (1LLU<<attribute)
29
30 typedef enum {
31 attr_filename=0,
32 attr_linkname,
33 attr_perm,
34 attr_uid,
35 attr_gid,
36 attr_size,
37 attr_atime,
38 attr_ctime,
39 attr_mtime,
40 attr_inode,
41 attr_bcount,
42 attr_linkcount,
43 attr_md5,
44 attr_sha1,
45 attr_rmd160,
46 attr_tiger,
47 attr_crc32,
48 attr_haval,
49 attr_gostr3411_94,
50 attr_crc32b,
51 attr_attr,
52 attr_acl,
53 attr_bsize,
54 attr_rdev,
55 attr_dev,
56 attr_allhashsums,
57 attr_sizeg,
58 attr_checkinode,
59 attr_allownewfile,
60 attr_allowrmfile,
61 attr_sha256,
62 attr_sha512,
63 attr_selinux,
64 attr_xattrs,
65 attr_whirlpool,
66 attr_ftype,
67 attr_e2fsattrs,
68 attr_capabilities,
69 attr_stribog256,
70 attr_stribog512,
71 attr_growing,
72 attr_compressed,
73 attr_sha512_256,
74 attr_sha3_256,
75 attr_sha3_512,
76 attr_fs_type,
77 attr_unknown
78 } ATTRIBUTE;
79
80 typedef struct {
81 DB_ATTR_TYPE attr;
82 char *config_name;
83 char *details_string;
84 char *db_name;
85 char *field_name;
86 char summary_char;
87 } attributes_t;
88
89 #define MAX_WIDTH_DETAILS_STRING 10
90
91 extern attributes_t attributes[];
92 extern DB_ATTR_TYPE num_attrs;
93
94 /* memory for the returned string is obtained with malloc(3), and should be freed with free(3). */
95 char *diff_attributes(DB_ATTR_TYPE, DB_ATTR_TYPE);
96
97 /* memory for the returned string is obtained with malloc(3), and should be freed with free(3). */
98 char *diff_database_attributes(DB_ATTR_TYPE, DB_ATTR_TYPE);
99 #endif