@@ -109,59 +109,62 @@ int Driver::addSecRule(std::unique_ptr<RuleWithActions> r) {
109
109
);
110
110
firstRule->setLogDataAction (nullptr );
111
111
}
112
- if (firstRule->hasSeverityAction ()) {
112
+ if (firstRule->hasSeverity ()) {
113
113
firstRule->getChainedParent ()->setSeverity (
114
114
firstRule->getSeverity ()
115
115
);
116
116
}
117
- if (firstRule->hasRevisionAction ()) {
117
+ if (firstRule->hasRevision ()) {
118
118
firstRule->getChainedParent ()->setRevision (
119
119
firstRule->getRevision ()
120
120
);
121
121
}
122
- if (firstRule->hasVersionAction ()) {
122
+ if (firstRule->hasVersion ()) {
123
123
firstRule->getChainedParent ()->setVersion (
124
124
firstRule->getVersion ()
125
125
);
126
126
}
127
- if (firstRule->hasAccuracyAction ()) {
127
+ if (firstRule->hasAccuracy ()) {
128
128
firstRule->getChainedParent ()->setAccuracy (
129
129
firstRule->getAccuracy ()
130
130
);
131
131
}
132
- if (firstRule->hasMaturityAction ()) {
132
+ if (firstRule->hasMaturity ()) {
133
133
firstRule->getChainedParent ()->setMaturity (
134
134
firstRule->getMaturity ()
135
135
);
136
136
}
137
137
138
- if (firstRule->hasTagAction ()) {
138
+ if (firstRule->hasTags ()) {
139
139
firstRule->getChainedParent ()->setTags (
140
- firstRule->getTagsAction ()
140
+ firstRule->getTags ()
141
141
);
142
- firstRule->cleanTags ();
142
+ firstRule->clearTags ();
143
143
}
144
144
145
+ /* disruptive can only be set on the first rule
145
146
if (firstRule->hasDisruptiveAction()) {
146
147
firstRule->getChainedParent()->setDisruptiveAction(
147
148
firstRule->getDisruptiveAction()
148
149
);
149
150
firstRule->setDisruptiveAction(nullptr);
150
151
}
151
- firstRule->getChainedParent ()->setHasBlockAction (
152
- firstRule->hasBlockAction ()
152
+ */
153
+
154
+ firstRule->getChainedParent ()->setBlock (
155
+ firstRule->hasBlock ()
153
156
);
154
- firstRule->getChainedParent ()->setHasLogAction (
155
- firstRule->hasLogAction ()
157
+ firstRule->getChainedParent ()->setLog (
158
+ firstRule->hasLog ()
156
159
);
157
- firstRule->getChainedParent ()->setHasLogAction (
158
- firstRule->hasNoLogAction ()
160
+ firstRule->getChainedParent ()->setNoLog (
161
+ firstRule->hasNoLog ()
159
162
);
160
- firstRule->getChainedParent ()->setHasAuditLogAction (
161
- firstRule->hasAuditLogAction ()
163
+ firstRule->getChainedParent ()->setAuditLog (
164
+ firstRule->hasAuditLog ()
162
165
);
163
- firstRule->getChainedParent ()->setHasNoAuditLogAction (
164
- firstRule->hasNoAuditLogAction ()
166
+ firstRule->getChainedParent ()->setNoAuditLog (
167
+ firstRule->hasNoAuditLog ()
165
168
);
166
169
firstRule = firstRule->getChainedParent ();
167
170
}
0 commit comments