ksud: ignore empty sepolicy rule
This commit is contained in:
@@ -352,6 +352,9 @@ where
|
|||||||
let mut statements = vec![];
|
let mut statements = vec![];
|
||||||
|
|
||||||
for line in input.split(['\n', ';']) {
|
for line in input.split(['\n', ';']) {
|
||||||
|
if line.trim().is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if let Ok((_, statement)) = PolicyStatement::parse(line.trim()) {
|
if let Ok((_, statement)) = PolicyStatement::parse(line.trim()) {
|
||||||
statements.push(statement);
|
statements.push(statement);
|
||||||
} else if strict {
|
} else if strict {
|
||||||
|
|||||||
Reference in New Issue
Block a user