ksud: don't apply rule when check grammer

This commit is contained in:
weishu
2023-07-01 17:43:40 +08:00
parent a9c33f6940
commit 827a2f2901

View File

@@ -746,9 +746,6 @@ pub fn check_rule(policy: &str) -> Result<()> {
} else {
policy.to_string()
};
let result = parse_sepolicy(policy.trim(), true)?;
for statement in result {
apply_one_rule(&statement, true)?;
}
parse_sepolicy(policy.trim(), true)?;
Ok(())
}