dinit
dinit copied to clipboard
init: optionally load the system SELinux policy
Implements #399 . Currently a draft PR for some of the reasons noted in that issue. Another thing to add:
- I saw mentioned here, https://github.com/davmac314/dinit/issues/240#issuecomment-1963096377, that you don't want to be falling back to C interfaces. For now, I'm just calling
fprintf
if the SELinux policy fails to load (as/dev/console
is likely unable to be accessed at that point). Would you preferstd::cout
to be used for now in this case?