Mock selinux when building docs.
Fix sphinx formatting of code blocks in devicefactory docstrings.