| 1 | /* |
| 2 | * AIDE (Advanced Intrusion Detection Environment) |
| 3 | * |
| 4 | * Copyright (C) 1999-2002,2006,2010-2011,2019,2022,2023,2025 Rami Lehti, Pablo |
| 5 | * 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 _DO_MD_H_INCLUDED |
| 23 | #define _DO_MD_H_INCLUDED |
| 24 | |
| 25 | #include "config.h" |
| 26 | #include <stdbool.h> |
| 27 | #include <stdio.h> |
| 28 | #include "db_disk.h" |
| 29 | #include "list.h" |
| 30 | #include "db_config.h" |
| 31 | #include "md.h" |
| 32 | |
| 33 | list* do_md(list* file_lst,db_config* conf); |
| 34 | int stat_cmp(struct stat*, struct stat*, bool); |
| 35 | md_hashsums calc_hashsums(disk_entry *, DB_ATTR_TYPE, ssize_t, bool, const char *); |
| 36 | |
| 37 | #ifdef WITH_ACL |
| 38 | void acl2line(db_line* line, int, const char *); |
| 39 | #endif |
| 40 | |
| 41 | #ifdef WITH_XATTR |
| 42 | void xattrs2line(db_line *line, int, const char *); |
| 43 | #endif |
| 44 | |
| 45 | #ifdef WITH_SELINUX |
| 46 | void selinux2line(db_line *line, int, const char *); |
| 47 | #endif |
| 48 | |
| 49 | #ifdef WITH_E2FSATTRS |
| 50 | void e2fsattrs2line(db_line* line, int, const char *); |
| 51 | #endif |
| 52 | |
| 53 | #ifdef WITH_CAPABILITIES |
| 54 | void capabilities2line(db_line* line, int, const char *); |
| 55 | #endif |
| 56 | |
| 57 | #endif /* _DO_MD_H_INCLUDED */ |