SELinuxProject / refpolicy

SELinux Reference Policy v2
https://github.com/SELinuxProject/refpolicy/wiki
GNU General Public License v2.0
298 stars 129 forks source link

libraries: drop space in empty line #763

Closed cgzones closed 6 months ago

cgzones commented 6 months ago

Drop a line containing a single space from the file context file to avoid SELint stumble on it:

libraries.mod.fc:   130: (E): Bad file context format (E-002)
dburgener commented 6 months ago

Is there a reason not to just call this an selint bug? I don't really know why whitespace here should be illegal. Glancing at parse_fc.c, it looks like selint should just skip a line that starts with '), so it's not immediately clear to me why Selint would even complain here.

I'm out of the office currently, but I'll try to find some time to dig more here when I get to a computer.