diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 13:53:55 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 15:54:10 +0200 |
commit | 9bf7cb0b7415857a4ee73676f986012a419a17b8 (patch) | |
tree | 0fcf8a1cfe9fdc222116c746c76216c0d2f085f1 /redhat/frr.spec.in | |
parent | Merge pull request #11012 from anlancs/bgpd-mh-simplify-condition (diff) | |
download | frr-9bf7cb0b7415857a4ee73676f986012a419a17b8.tar.xz frr-9bf7cb0b7415857a4ee73676f986012a419a17b8.zip |
packaging: Set default permissions for /var/log/frr to 0755
At the moment we set /var/log/frr permissions to 0750 (frr:frr), but the log
file is 0640 (root:adm) (unless logrotated) and that doesn't allow adm group
to even open the directory.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'redhat/frr.spec.in')
-rw-r--r-- | redhat/frr.spec.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 740cfe498..13ba6c42c 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -432,7 +432,8 @@ popd %install mkdir -p %{buildroot}%{_sysconfdir}/{frr,sysconfig,logrotate.d,pam.d,default} \ - %{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_infodir} + %{buildroot}%{_infodir} +mkdir -m 0755 -p %{buildroot}%{_localstatedir}/log/frr make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install # Remove this file, as it is uninstalled and causes errors when building on RH9 @@ -639,11 +640,11 @@ fi /usr/share/yang/*.yang %if 0%{?frr_user:1} %dir %attr(751,%{frr_user},%{frr_user}) %{configdir} - %dir %attr(750,%{frr_user},%{frr_user}) %{_localstatedir}/log/frr + %dir %attr(755,%{frr_user},%{frr_user}) %{_localstatedir}/log/frr %dir %attr(751,%{frr_user},%{frr_user}) %{rundir} %else %dir %attr(750,root,root) %{configdir} - %dir %attr(750,root,root) %{_localstatedir}/log/frr + %dir %attr(755,root,root) %{_localstatedir}/log/frr %dir %attr(750,root,root) %{rundir} %endif %{_infodir}/frr.info.gz @@ -918,7 +919,7 @@ sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons - Add ability to show BGP routes from a particular table version - Add support for for RFC 8050 (MRT add-path) - Add SNMP support for MPLS VPN -- Add `show bgp summary wide` command to show more detailed output +- Add `show bgp summary wide` command to show more detailed output on wide terminals - Add ability for peer-groups to have `ttl-security hops` configured - Add support for conditional Advertisement |