When the logrotate script runs, and Open vSwitch is running as a non-root user, the /var/log/openvswitch directory doesn't have other rx bits set. This means the reopen attempt will fail with "permission denied", even though the default logrotate configuration creates a new log file with the appropriate attributes.
This change sets the r/x bits for other on /var/log/messages Signed-off-by: Aaron Conole <acon...@redhat.com> Tested-by: Jean Hsiao <jhs...@redhat.com> --- rhel/openvswitch-fedora.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index dd79fa9..8d62393 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -577,7 +577,7 @@ fi %endif %doc COPYING NOTICE README.rst NEWS rhel/README.RHEL.rst /var/lib/openvswitch -/var/log/openvswitch +%attr(755,-,-) /var/log/openvswitch %ghost %attr(755,root,root) %{_rundir}/openvswitch %files ovn-docker -- 2.9.4 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev