Selinux is crap.Sorry redhat fun boys but its true.Not even in redhat’s documentation doesnt have enough info.
My own experience with SELinux today? A Virtual Machine with a forgotten root password. OK, that’s easy, boot in single user mode, type passwd(1), enter the new root password, reboot. I mean the process is documented in a shitload of pages (example) and has been working like that since … I don’t know 1996? Should be a piece of cake, right?
You see this is SELinux. There are procedures to follow, “passwd root” just won’t work in single user mode and will exit immediately without a prompt. A well-defined procedure that has been working for ages is now broken. Oh well …
# echo 0 >/selinux/enforce
# passwd root
Changing password for user root.
Oh-well I am fairly certain that there is one out of more than a billion parallel universes where SELinux just works. Just one though.