Do not use "scl enable" when starting named
Using "scl enable" in a systemd unit file prevents the service being started from transitioning into a confined SELinux domain. Since named is built with -rpath and thus it is able to find the shared libraries it is linked against even without LD_LIBRARY_PATH being set to the SCL's library directory, invoke the named binary directly in the unit file to ensure it transitions to the desired SELinux domain upon startup. Apply the same change to the CentOS 6 init script for consistency.
Showing with 9 additions and 6 deletions