SELinuxProject/selint

Missing support for IFNDEF statements

Closed this issue · 1 comments

# git clone https://github.com/fedora-selinux/selinux-policy.git
# selint -s -r selinux-policy
selinux-policy/policy/modules/contrib/cockpit.if:13: (F): syntax error, unexpected IFNDEF, expecting end of file (F-001)
   13 | ifndef(`cockpit_ws_domtrans',`
      | ^~~~~~
Error: Failed to parse files

ifndef statements in .if files are supported by current upstream userspace.

Thanks for the report.

At a quick glance in the parser, I think the issue applies to both ifdef and ifndef.

I think the fix should be pretty trivial, so I'll aim to get a PR up today.