diff options
| author | root <[email protected]> | 2024-10-08 11:10:03 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2024-10-08 11:10:03 +0000 |
| commit | 35667246d3c23976e1200ee369683ea89ffbbaba (patch) | |
| tree | c00a1869c2d8695475b595d0696ea3e9cebd92ef /include | |
| parent | 3bbbd53f393927b2e1de784a70deee9d8694b195 (diff) | |
use attribute_name instead of attribute_id to map condition_id
Diffstat (limited to 'include')
| -rw-r--r-- | include/maat.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/maat.h b/include/maat.h index 5da5c8c..c6bba19 100644 --- a/include/maat.h +++ b/include/maat.h @@ -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 { |
