- Update to upstream
This commit is contained in:
parent
8e5289e20b
commit
2528fa0969
@ -159,7 +159,8 @@ rm -f %{_sysconfdir}/selinux/%1/policy/policy.*.rpmnew
|
|||||||
%define relabel() \
|
%define relabel() \
|
||||||
. %{_sysconfdir}/selinux/config; \
|
. %{_sysconfdir}/selinux/config; \
|
||||||
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
||||||
if [ "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.pre ]; then \
|
selinuxenabled; \
|
||||||
|
if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.pre ]; then \
|
||||||
fixfiles -C ${FILE_CONTEXT}.pre restore; \
|
fixfiles -C ${FILE_CONTEXT}.pre restore; \
|
||||||
rm -f ${FILE_CONTEXT}.pre; \
|
rm -f ${FILE_CONTEXT}.pre; \
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user