diff --git a/k3s-plugins.spec b/k3s-plugins.spec index e6b540b..12a3cbe 100644 --- a/k3s-plugins.spec +++ b/k3s-plugins.spec @@ -2,7 +2,7 @@ Name: k3s-plugins Version: 1.1.1 -Release: 1 +Release: 2 Summary: some standard networking plugins, maintained by the CNI team URL : https://github.com/rancher/plugins Source0: https://github.com/rancher/plugins/archive/refs/tags/v%{version}-%{tagname}.tar.gz @@ -70,7 +70,7 @@ popd OutputDir=`pwd`/.gopath/cni GOPATH=`pwd`/.gopath pushd .gopath/src/github.com/containernetworking/plugins -GO111MODULE=off GOPATH=$GOPATH CGO_ENABLED=0 "${GO}" build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS" -o $OutputDir +GO111MODULE=off GOPATH=$GOPATH CGO_ENABLED=0 "${GO}" build -tags "$TAGS" -buildmode=pie -ldflags "$VERSIONFLAGS $LDFLAGS -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now ' " -o $OutputDir popd %install @@ -81,5 +81,8 @@ install -p -m 755 ./.gopath/cni $RPM_BUILD_ROOT/%{_datadir}/k3s/ %{_datadir}/k3s/ %changelog +* Thu Feb 9 2023 liyanan - 1.1.1-2 +- Add PIE, BIND_NOW, RELRO secure compilation options + * Mon Oct 10 2022 Ge Wang - 1.1.1-1 - Init package