]> git.proxmox.com Git - ovs.git/commit
ovs-ctl: fix system-id.conf owner
authorDavid Marchand <david.marchand@redhat.com>
Thu, 22 Nov 2018 15:37:57 +0000 (16:37 +0100)
committerBen Pfaff <blp@ovn.org>
Mon, 10 Dec 2018 21:02:55 +0000 (13:02 -0800)
commit741fd33efe14a3ac31c045af829ca3f7a5894d76
treea4e36a081c00c0ce355d74187486d1e51c426858
parent71e8afbdfdd303f9ea850f05509f187d7b8160aa
ovs-ctl: fix system-id.conf owner

As far as RPMs are concerned, system-id.conf file is declared as being
owned by openvswitch.
At the first ovs startup, ovs-ctl creates this file if none exists without
ensuring this.

We end up with an inconsistency:
$ rpm -V openvswitch
.....UG..  c /etc/openvswitch/system-id.conf

Fix this when ovs-ctl is the one who creates the file.

Note: this issue ends up being hidden after a RPM upgrade, since the
openvswitch user is enforced on the whole /etc/openvswitch directory as a
%post operation.

Acked-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-ctl.in
utilities/ovs-lib.in