ksud: don't apply rule when check grammer
This commit is contained in:
@@ -746,9 +746,6 @@ pub fn check_rule(policy: &str) -> Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
policy.to_string()
|
policy.to_string()
|
||||||
};
|
};
|
||||||
let result = parse_sepolicy(policy.trim(), true)?;
|
parse_sepolicy(policy.trim(), true)?;
|
||||||
for statement in result {
|
|
||||||
apply_one_rule(&statement, true)?;
|
|
||||||
}
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user