Also relabel files under /usr/sbin
I forgot that this needs to apply to pre-sbin-merge systems too. Let's cover those too. Related: RHEL-54303
This commit is contained in:
parent
5e1af34521
commit
488e7b1b79
@ -289,7 +289,7 @@ fi; \
|
|||||||
# In some scenarios, /usr/bin/httpd is labelled incorrectly after sbin merge. \
|
# In some scenarios, /usr/bin/httpd is labelled incorrectly after sbin merge. \
|
||||||
# Relabel all files under /usr/bin, in case they got installed before policy \
|
# Relabel all files under /usr/bin, in case they got installed before policy \
|
||||||
# was updated and the labels were incorrect. \
|
# was updated and the labels were incorrect. \
|
||||||
%{_sbindir}/restorecon -R /usr/bin \
|
%{_sbindir}/restorecon -R /usr/bin /usr/sbin \
|
||||||
if %{_sbindir}/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null;then \
|
if %{_sbindir}/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null;then \
|
||||||
continue; \
|
continue; \
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user