From 947a8dfb75b8f49f8c580ff5d872cf7a141484e4 Mon Sep 17 00:00:00 2001 From: Petr Kovar Date: Aug 30 2013 13:19:42 +0000 Subject: Roll back SELinux docs --- diff --git a/en-US/Packaging_Software_Collections.xml b/en-US/Packaging_Software_Collections.xml index 67ac95d..c100c81 100644 --- a/en-US/Packaging_Software_Collections.xml +++ b/en-US/Packaging_Software_Collections.xml @@ -827,9 +827,27 @@ install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{?scl:%_root_sysconfdir}%{!?scl: restorecon -R -v /&OPT;/&RH;/software_collection_1/x86_64/root/usr The commands above ensure that all directories and files in the /&OPT;/&RH;/software_collection_1/x86_64/root/usr/ directory are labeled by SELinux as if they were located in the /usr/ directory. + To use the semanage fcontext and restorecon commands in your &DSCL;, add the commands to the %post post-installation scriptlet in the &DSCL; spec file. + + + Keep in mind that the semanage -e command, which substitutes the source path for the destination path during labeling, is not supported in Red Hat Enterprise Linux 5. + + + + Using the restorecon command on Red Hat Enterprise Linux 6 Note that when using the semanage fcontext and restorecon commands in the &DSCL; spec file, RPM will not set up the desired SELinux labels correctly for certain files if the following conditions are met: @@ -913,7 +931,7 @@ Requires(preun): libselinux policycoreutils-python Keep in mind that the semanage -e command, which substitutes the source path for the destination path during labeling, is not supported in Red Hat Enterprise Linux 5. - + -->
Packaging Wrappers for &DSCL;s