mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: Improve the rule skip test.
Rules can be marked as being deleted/merged, and should be skipped on further processing. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -58,6 +58,12 @@ public:
|
||||
|
||||
bool is_type(int type) { return rule_type == type; }
|
||||
|
||||
// rule has been marked as should be skipped by regular processing
|
||||
bool skip_processing()
|
||||
{
|
||||
return (flags == RULE_FLAG_DELETED ||
|
||||
flags == RULE_FLAG_MERGED);
|
||||
}
|
||||
//virtual bool operator<(rule_t const &rhs)const = 0;
|
||||
virtual std::ostream &dump(std::ostream &os) = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user