diff --git a/native/src/sepolicy/statement.rs b/native/src/sepolicy/statement.rs index b8843cb84..014e94124 100644 --- a/native/src/sepolicy/statement.rs +++ b/native/src/sepolicy/statement.rs @@ -436,6 +436,9 @@ fn extract_token<'a>(s: &'a str, tokens: &mut Vec>) { fn tokenize_statement(statement: &str) -> Vec { let mut tokens = Vec::new(); for s in statement.split_whitespace() { + if s.starts_with('#') { + break; + } extract_token(s, &mut tokens); } tokens