On Fri, 22 Sep 2017 09:44:18 -0400 Aaron Conole <acon...@redhat.com> wrote:
> 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 /var/log/openvswitch? :-) Reproduced here # ovs-appctl -t ovs-vswitchd vlog/reopen Permission denied ovs-appctl: ovs-vswitchd: server returned an error Acked-by: Flavio Leitner <f...@sysclose.org> > > 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 -- Flavio _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev