| 1 | /* |
| 2 | * AIDE (Advanced Intrusion Detection Environment) |
| 3 | * |
| 4 | * Copyright (C) 1999-2002, 2010, 2020, 2023, 2025 Rami Lehti, Pablo Virolainen, |
| 5 | * 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 _SELTREE_STRUCT_H_INCLUDED |
| 23 | #define _SELTREE_STRUCT_H_INCLUDED |
| 24 | #include <pthread.h> |
| 25 | #include "attributes.h" |
| 26 | #include "list.h" |
| 27 | #include "tree.h" |
| 28 | |
| 29 | struct seltree { |
| 30 | |
| 31 | pthread_rwlock_t rwlock; |
| 32 | |
| 33 | list* sel_rx_lst; |
| 34 | list* neg_rx_lst; |
| 35 | list* equ_rx_lst; |
| 36 | |
| 37 | struct seltree* parent; |
| 38 | |
| 39 | tree_node *children; |
| 40 | |
| 41 | char* path; |
| 42 | int checked; |
| 43 | |
| 44 | struct db_line* new_data; |
| 45 | struct db_line* old_data; |
| 46 | |
| 47 | DB_ATTR_TYPE changed_attrs; |
| 48 | |
| 49 | }; |
| 50 | #endif /* _SELTREE_STRUCT_H_INCLUDED */ |