[valgrind] Revert "fixup selinux file context when doing a scl build"

Mark Wielaard mjw at fedoraproject.org
Fri Jun 28 10:48:37 UTC 2013


commit bbbedabab533e871cb4f82db1a873cf473388c04
Author: Mark Wielaard <mjw at redhat.com>
Date:   Fri Jun 28 12:46:55 2013 +0200

    Revert "fixup selinux file context when doing a scl build"
    
    This reverts commit 49a8938c40eb9b06878f647a7db80fac54c95338.
    
    Fixing up the selinux file context is the responsibility of
    the scl meta-package, not of any individual package.

 valgrind.spec |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/valgrind.spec b/valgrind.spec
index 8b7d3ab..4df4472 100644
--- a/valgrind.spec
+++ b/valgrind.spec
@@ -186,9 +186,6 @@ BuildRequires: /bin/ps
 
 %{?scl:Requires:%scl_runtime}
 
-# We need to fixup selinux file context when doing a scl build.
-%{?scl:Requires(post): /usr/sbin/semanage, /sbin/restorecon}
-
 ExclusiveArch: %{ix86} x86_64 ppc ppc64 s390x %{arm}
 %ifarch %{ix86}
 %define valarch x86
@@ -461,15 +458,6 @@ echo ===============END TESTING===============
 %{_libdir}/valgrind/libmpiwrap*.so
 %endif
 
-%post
-# Fixup selinux file context inside software collection
-%if 0%{?rhel} == 5
-%{?scl:/usr/sbin/semanage fcontext -a -t unconfined_execmem_exec_t %{_bindir}/valgrind}
-%else
-%{?scl:/usr/sbin/semanage fcontext -a -t execmem_exec_t %{_bindir}/valgrind}
-%endif
-%{?scl:/sbin/restorecon %{_bindir}/valgrind}
-
 %changelog
 * Tue May 28 2013 Michael Schwendt <mschwendt at fedoraproject.org> - 1:3.8.1-16
 - Provide virtual -static package in -devel subpackage (#609624).


More information about the scm-commits mailing list