Resolves: #2144500 - AVC error when reloading FRR with provided reload script
This commit is contained in:
parent
c77e3b4511
commit
bf0b074c96
2
frr.fc
2
frr.fc
@ -1,4 +1,4 @@
|
|||||||
/usr/libexec/frr(/.*)? gen_context(system_u:object_r:frr_exec_t,s0)
|
/usr/libexec/frr/(.*)? gen_context(system_u:object_r:frr_exec_t,s0)
|
||||||
|
|
||||||
/usr/lib/systemd/system/frr.* gen_context(system_u:object_r:frr_unit_file_t,s0)
|
/usr/lib/systemd/system/frr.* gen_context(system_u:object_r:frr_unit_file_t,s0)
|
||||||
|
|
||||||
|
9
frr.spec
9
frr.spec
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: frr
|
Name: frr
|
||||||
Version: 8.3.1
|
Version: 8.3.1
|
||||||
Release: 3%{?checkout}%{?dist}
|
Release: 4%{?checkout}%{?dist}
|
||||||
Summary: Routing daemon
|
Summary: Routing daemon
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.frrouting.org
|
URL: http://www.frrouting.org
|
||||||
@ -227,10 +227,10 @@ fi
|
|||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
#/var/tmp and /var/run need to be relabeled as well if FRR is running before upgrade
|
#/var/tmp and /var/run need to be relabeled as well if FRR is running before upgrade
|
||||||
##if [ $1 == 2 ]; then
|
if [ $1 == 2 ]; then
|
||||||
%{_sbindir}/restorecon -R /var/tmp/frr &> /dev/null
|
%{_sbindir}/restorecon -R /var/tmp/frr &> /dev/null
|
||||||
%{_sbindir}/restorecon -R /var/run/frr &> /dev/null
|
%{_sbindir}/restorecon -R /var/run/frr &> /dev/null
|
||||||
##fi
|
fi
|
||||||
|
|
||||||
%postun selinux
|
%postun selinux
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -275,6 +275,9 @@ make check PYTHON=%{__python3}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 24 2022 Michal Ruprich <mruprich@redhat.com> - 8.3.1-4
|
||||||
|
- Resolves: #2144500 - AVC error when reloading FRR with provided reload script
|
||||||
|
|
||||||
* Wed Oct 19 2022 Michal Ruprich <mruprich@redhat.com> - 8.3.1-3
|
* Wed Oct 19 2022 Michal Ruprich <mruprich@redhat.com> - 8.3.1-3
|
||||||
- Related: #2129743 - Adding missing rules for vtysh and other daemons
|
- Related: #2129743 - Adding missing rules for vtysh and other daemons
|
||||||
|
|
||||||
|
1
frr.te
1
frr.te
@ -119,4 +119,5 @@ optional_policy(`
|
|||||||
|
|
||||||
optional_policy(`
|
optional_policy(`
|
||||||
userdom_admin_home_dir_filetrans(frr_t, frr_conf_t, file, ".history_frr")
|
userdom_admin_home_dir_filetrans(frr_t, frr_conf_t, file, ".history_frr")
|
||||||
|
userdom_inherit_append_admin_home_files(frr_t, frr_conf_t, file, ".history_frr")
|
||||||
')
|
')
|
||||||
|
Loading…
Reference in New Issue
Block a user