Add SELinux support for files and directories.
Reviewed and slighly changed the pull request of Gerben Welter.