2020-05-20 09:45:43 +02:00
|
|
|
From 4de3a6e6fc67125a900913598344881c0b0bed71 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Jaime=20Caama=C3=B1o=20Ruiz?= <jcaamano@suse.com>
|
|
|
|
Date: Fri, 8 May 2020 11:15:57 +0200
|
|
|
|
Subject: [PATCH] Run openvswitch as openvswitch:openvswitch
|
|
|
|
|
|
|
|
Change default run configuration to unprivilieged user openvswitch and
|
|
|
|
group openvswitch. Expect any further customization from user in
|
|
|
|
sysconfig/openvswitch, including setting it back to privileged root:root
|
|
|
|
configuration.
|
2023-04-06 11:47:29 +02:00
|
|
|
|
|
|
|
Updated 2023-02-26 for version 3.1.0
|
2020-05-20 09:45:43 +02:00
|
|
|
|
|
|
|
diff --git a/rhel/etc_logrotate.d_openvswitch b/rhel/etc_logrotate.d_openvswitch
|
2023-04-06 11:47:29 +02:00
|
|
|
index c0f476744..fa6303873 100644
|
2020-05-20 09:45:43 +02:00
|
|
|
--- a/rhel/etc_logrotate.d_openvswitch
|
|
|
|
+++ b/rhel/etc_logrotate.d_openvswitch
|
|
|
|
@@ -6,7 +6,7 @@
|
|
|
|
# without warranty of any kind.
|
|
|
|
|
|
|
|
/var/log/openvswitch/*.log {
|
|
|
|
- su root root
|
|
|
|
+ su openvswitch openvswitch
|
|
|
|
daily
|
|
|
|
compress
|
|
|
|
sharedscripts
|
|
|
|
diff --git a/rhel/etc_openvswitch_default.conf b/rhel/etc_openvswitch_default.conf
|
2023-04-06 11:47:29 +02:00
|
|
|
index c74417db6..569ca95de 100644
|
2020-05-20 09:45:43 +02:00
|
|
|
--- a/rhel/etc_openvswitch_default.conf
|
|
|
|
+++ b/rhel/etc_openvswitch_default.conf
|
2023-04-06 11:47:29 +02:00
|
|
|
@@ -2,4 +2,4 @@
|
2020-05-20 09:45:43 +02:00
|
|
|
|
|
|
|
# The following is the *default* configuration for the openvswitch user ID.
|
2023-04-06 11:47:29 +02:00
|
|
|
# This is for backward compatibility.
|
2020-05-20 09:45:43 +02:00
|
|
|
-OVS_USER_ID="root:root"
|
|
|
|
+OVS_USER_ID="openvswitch:openvswitch"
|