SELinux: running semodule -DB
fails with "file_contexts: line X is missing fields, skipping"
#305
Labels
kind/bug
Something isn't working
Description
When trying to run
semodule -DB
before enabling enforcing mode in SELinux, a lot of errors like the following are printed:Impact
I'm not sure. I don't know if this means SELinux is using no contexts or if it's using some default contexts. Needs further investigation.
Environment and steps to reproduce
Running
semodule -DB
will fail with the above mentioned errors.Additional information
The mentioned files are generated by the command itself in a step before trying to parse them. I tried modifying the files manually to see what happened, and my changes got overwritten by the
semodule
command (this part is working as intended, as far as I understand, the actual contents come from /lib which is in the read-only file system).Apparently, the contents generated by the command in one step are not parsed correctly in the following step.
This is where the error is generated, if there aren't two fields when reading the files:
https://github.com/SELinuxProject/selinux/blob/master/libselinux/src/label_media.c#L50
The text was updated successfully, but these errors were encountered: