use attribute_name instead of attribute_id to map condition_id

This commit is contained in:
root
2024-10-08 11:10:03 +00:00
parent 3bbbd53f39
commit 35667246d3
21 changed files with 737 additions and 690 deletions

View File

@@ -25,12 +25,14 @@ extern "C"
#include <netinet/in.h>
#include <uuid/uuid.h>
#define MAX_ATTR_NAME_LEN 128
/* maat instance handle */
struct maat;
struct maat_hit_path {
int Nth_scan;
char *attribute_name; // 0 is not a attribute.
char attribute_name[MAX_ATTR_NAME_LEN]; // 0 is not a attribute.
int negate_option; // 1 means negate condition(condition)
int condition_index; // 0 ~ 7
uuid_t item_uuid;
@@ -42,7 +44,7 @@ struct maat_hit_path {
struct maat_hit_object {
uuid_t item_uuid;
uuid_t object_uuid;
char *attribute_name;
char attribute_name[MAX_ATTR_NAME_LEN];
};
enum maat_scan_status {