summaryrefslogtreecommitdiff
path: root/src/analysis/scan/rule.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-09-25 06:34:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-09-25 06:34:24 (GMT)
commit4c13ca820e4fa01ca62ad66c0665ebbee150f87c (patch)
tree46d573dc869b11efa03c6782c06dc5121b3dc609 /src/analysis/scan/rule.h
parent61704628e3ca8c31df1666b3be4b723643dd25db (diff)
Handle private and global rules.
Diffstat (limited to 'src/analysis/scan/rule.h')
-rw-r--r--src/analysis/scan/rule.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/analysis/scan/rule.h b/src/analysis/scan/rule.h
index 6ab5105..3e6fe9d 100644
--- a/src/analysis/scan/rule.h
+++ b/src/analysis/scan/rule.h
@@ -53,11 +53,24 @@ typedef struct _GScanRule GScanRule;
typedef struct _GScanRuleClass GScanRuleClass;
+/* Particularités de règle à faire valoir */
+typedef enum _ScanRuleFlags
+{
+ SRF_NONE = (0 << 0), /* Absence de particularité */
+ SRF_PRIVATE = (1 << 0), /* Règle silencieuse */
+ SRF_GLOBAL = (1 << 1) /* Règle de base implicite */
+
+} ScanRuleFlags;
+
+
/* Indique le type défini pour une règle de détection par motifs. */
GType g_scan_rule_get_type(void);
/* Crée une règle de détection statique à l'aide de motifs. */
-GScanRule *g_scan_rule_new(const char *);
+GScanRule *g_scan_rule_new(ScanRuleFlags, const char *);
+
+/* Indique les particularités liées à une règle de détection. */
+ScanRuleFlags g_scan_rule_get_flags(const GScanRule *);
/* Indique le nom associé à une règle de détection. */
const char *g_scan_rule_get_name(const GScanRule *, fnv64_t *);