On Mon, Sep 25, 2017 at 2:42 PM, Aaron Conole <acon...@redhat.com> wrote:
> Flavio Leitner <f...@sysclose.org> writes: > > > 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? :-) > > D'oh! Let's blame it on the problem between the keyboard and chair. > > Russell - since you're likely the committer for this, do you want a v2 > with a fixed message, or would you be able to fix it during apply? > If it's just the commit message, don't worry about v2. > > > 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 > -- Russell Bryant _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev