From 331552d5a1c73d8ebcd57031c08832ea99cd4a74 Mon Sep 17 00:00:00 2001 From: sigui Date: Wed, 18 Mar 2020 14:05:00 +0800 Subject: [PATCH] add add-stack-protector-strong --- 0000-openvswitch-add-stack-protector-strong.patch | 13 +++++++++++++ openvswitch.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 0000-openvswitch-add-stack-protector-strong.patch diff --git a/0000-openvswitch-add-stack-protector-strong.patch b/0000-openvswitch-add-stack-protector-strong.patch new file mode 100644 index 0000000..36dbe8c --- /dev/null +++ b/0000-openvswitch-add-stack-protector-strong.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index ff1f94b..cca6cf0 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -30,7 +30,7 @@ AM_CPPFLAGS += -I $(top_builddir)/lib + + AM_CPPFLAGS += $(SSL_INCLUDES) + +-AM_CFLAGS = -Wstrict-prototypes ++AM_CFLAGS = -Wstrict-prototypes -fstack-protector-strong + AM_CFLAGS += $(WARNING_FLAGS) + AM_CFLAGS += $(OVS_CFLAGS) + diff --git a/openvswitch.spec b/openvswitch.spec index 1bb38c6..9d1e185 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -3,9 +3,10 @@ Summary: Production Quality, Multilayer Open Virtual Switch URL: http://www.openvswitch.org/ Version: 2.12.0 License: ASL 2.0 -Release: 4 +Release: 5 Source: https://www.openvswitch.org/releases/openvswitch-%{version}.tar.gz Buildroot: /tmp/openvswitch-rpm +Patch0000: 0000-openvswitch-add-stack-protector-strong.patch Requires: logrotate hostname python >= 2.7 python2-six selinux-policy-targeted BuildRequires: python2-six, openssl-devel checkpolicy selinux-policy-devel autoconf automake libtool python-sphinx unbound-devel Provides: openvswitch-selinux-policy = %{version}-%{release} @@ -200,6 +201,9 @@ exit 0 %doc README.rst NEWS rhel/README.RHEL.rst %changelog +* Wed Mar 18 2020 zhangtao - 2.12.0-5 +- add stack protector + * Tue Mar 17 2020 gulining - 2.12.0-4 - remove extra spaces to resolve compile error -- Gitee