From 2bcdd52dc44b371f9240a06cc63d6b7a414a82d6 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 2 Feb 2017 00:23:03 +0100 Subject: [PATCH] gen-yum: fix selinux file context --- gen-yum | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gen-yum b/gen-yum index 27845f1..67cdcd7 100755 --- a/gen-yum +++ b/gen-yum @@ -12,6 +12,10 @@ for base_dir in $BASE_DIRS; do echo "== $YUM" cd $YUM + # Fix permissions + chmod a+r *.rpm + chcon -t svirt_sandbox_file_t *.rpm + # Check for unsigned RPMs unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp'` || true if [ ${#unsigned} != 0 ]; then @@ -28,9 +32,6 @@ for base_dir in $BASE_DIRS; do gpg2 -u $GPG_KEY --detach-sign --armor repodata/repomd.xml fi - # Fix permissions - chmod a+r *.rpm - restorecon -v *.rpm fi done done