diff --git a/fix-selinux-err.patch b/fix-selinux-err.patch new file mode 100644 index 0000000000000000000000000000000000000000..40be456cb3c092f2c41d9615a3e28a4d5f52b52d --- /dev/null +++ b/fix-selinux-err.patch @@ -0,0 +1,41 @@ +From 3b35964c7da2a4000486c57e2c347c8cc67ac393 Mon Sep 17 00:00:00 2001 +Date: Wed, 1 Sep 2021 16:54:34 +0800 +Subject: [PATCH] openvswitch-2 + +--- + selinux/openvswitch-custom.te.in | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/selinux/openvswitch-custom.te.in b/selinux/openvswitch-custom.te.in +index b2c63ab..8f76c14 100644 +--- a/selinux/openvswitch-custom.te.in ++++ b/selinux/openvswitch-custom.te.in +@@ -15,10 +15,12 @@ require { + type ifconfig_exec_t; + type init_t; + type init_var_run_t; ++ type initrc_t; + type insmod_exec_t; + type kernel_t; + type hostname_exec_t; + type modules_conf_t; ++ type modules_dep_t; + type modules_object_t; + type passwd_file_t; + type plymouth_exec_t; +@@ -117,10 +119,12 @@ allow openvswitch_t openvswitch_load_module_t:process transition; + allow openvswitch_load_module_t bin_t:file { execute execute_no_trans map }; + allow openvswitch_load_module_t init_t:unix_stream_socket { getattr ioctl read write }; + allow openvswitch_load_module_t init_var_run_t:dir { getattr read open search }; ++allow openvswitch_load_module_t initrc_t:fifo_file ioctl; + allow openvswitch_load_module_t insmod_exec_t:file { execute execute_no_trans getattr map open read }; + allow openvswitch_load_module_t kernel_t:system module_request; + allow openvswitch_load_module_t modules_conf_t:dir { getattr open read search }; + allow openvswitch_load_module_t modules_conf_t:file { getattr open read }; ++allow openvswitch_load_module_t modules_dep_t:file { getattr map open read }; + allow openvswitch_load_module_t modules_object_t:file { map getattr open read }; + allow openvswitch_load_module_t modules_object_t:dir { getattr open read search }; + allow openvswitch_load_module_t openvswitch_load_module_exec_t:file { entrypoint }; +-- +2.27.0 + diff --git a/openvswitch.spec b/openvswitch.spec index 3c5d67c93e73c5e47db7df5aa8dfb403e055c9e4..981a365b27c1bd88bc5b45c222a259f001dfb589 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -3,7 +3,7 @@ Summary: Production Quality, Multilayer Open Virtual Switch URL: http://www.openvswitch.org/ Version: 2.12.4 License: ASL 2.0 and ISC -Release: 5 +Release: 6 Source: https://www.openvswitch.org/releases/openvswitch-%{version}.tar.gz Buildroot: /tmp/openvswitch-rpm Patch0000: 0000-openvswitch-add-stack-protector-strong.patch @@ -11,6 +11,7 @@ Patch0001: 0001-Remove-unsupported-permission-names.patch Patch0002: backport-CVE-2022-4338.patch Patch0003: backport-CVE-2023-1668.patch Patch0004: backport-CVE-2023-5366.patch +Patch9000: fix-selinux-err.patch Requires: %{name}-help Requires: logrotate hostname python >= 2.7 python2-six selinux-policy-targeted libsepol >= 3.1 @@ -283,6 +284,12 @@ exit 0 %doc LICENSE %changelog +* Thu Dec 12 2023 zhouwenpei - 2.12.4-6 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:repair service startup failed + * Sat Oct 07 2023 zhouwenpei - 2.12.4-5 - fix CVE-2023-5366