Disable chcon on NFS.
This commit is contained in:
parent
c24f6f6391
commit
ae915b2a8a
@ -784,9 +784,12 @@ cp -a %{name}-%{version} tmp-python3
|
|||||||
mv tmp-python3 %{name}-%{version}/python3
|
mv tmp-python3 %{name}-%{version}/python3
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if [ "$(getenforce | tr '[A-Z]' '[a-z]')" != "disabled" ]; then
|
# For sVirt to work, the local temporary directory we use in the tests
|
||||||
# For sVirt to work, the local temporary directory we use in the
|
# must be labelled the same way as /tmp. This doesn't work if either
|
||||||
# tests must be labelled the same way as /tmp.
|
# the directory is on NFS (no SELinux labels) or if SELinux is
|
||||||
|
# disabled, hence the tests.
|
||||||
|
if [ "$(stat -f -L -c %T .)" != "nfs" ] && \
|
||||||
|
[ "$(getenforce | tr '[A-Z]' '[a-z]')" != "disabled" ]; then
|
||||||
chcon --reference=/tmp tmp
|
chcon --reference=/tmp tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user