From 0d1728a4a5f6aff411cdad52360e2ba930dc8dbf Mon Sep 17 00:00:00 2001 From: snoweay Date: Fri, 19 Mar 2021 12:02:44 +0800 Subject: [PATCH] spec: Add secure compile args --- nvwa.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nvwa.spec b/nvwa.spec index 9a7ae75..1353f2a 100644 --- a/nvwa.spec +++ b/nvwa.spec @@ -1,6 +1,6 @@ Name: nvwa Version: 0.1 -Release: 2 +Release: 3 Summary: a tool used for openEuler kernel update License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0 @@ -24,11 +24,11 @@ A tool used to automate the process of seamless update of the openEuler. %build cd src -go build -mod=vendor +go build -mod=vendor -buildmode=pie cd - cd tools -gcc %{name}-pin.c -o %{name}-pin +gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relro,-z,now cd - %install @@ -74,6 +74,9 @@ install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buil %{_bindir}/%{name}-pre.sh %changelog +* Fri 19 Mar 2021 snoweay - 0.1-3 +- Add secure compile args. + * Thu 18 Mar 2021 anatasluo - Update to 0.1-r2 * Thu Feb 18 2021 anatasluo -- Gitee