Make mcstrans PIE and fully relro

Resolves: #983268
This commit is contained in:
Dan Walsh 2013-10-16 14:50:34 -04:00
parent c4a27c8221
commit 0765f6c30c

View File

@ -1,7 +1,7 @@
Summary: SELinux Translation Daemon Summary: SELinux Translation Daemon
Name: mcstrans Name: mcstrans
Version: 0.3.4 Version: 0.3.4
Release: 1%{?dist} Release: 3%{?dist}
License: GPL+ License: GPL+
Group: System Environment/Daemons Group: System Environment/Daemons
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
@ -36,7 +36,7 @@ from internal representations to user defined representation.
%build %build
make clean make clean
make LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" CFLAGS="%{optflags} -fPIE" LDFLAGS="-pie -Wl,-z,relro" %{?_smp_mflags} make LIBDIR="%{_libdir}" LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" CFLAGS="%{optflags} -fPIE" %{?_smp_mflags}
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
@ -94,6 +94,13 @@ fi
%{_usr}/share/mcstrans/util/* %{_usr}/share/mcstrans/util/*
%changelog %changelog
* Thu Sep 12 2013 Dan Walsh <dwalsh@redhat.com> - 0.3.4-3
- Make mcstrans PIE and fully relro
Resolves: #983268
* Tue Oct 15 2013 Dan Walsh <dwalsh@redhat.com> - 0.3.4-2
- Add RELRO support for long running services
* Thu Sep 12 2013 Dan Walsh <dwalsh@redhat.com> - 0.3.4-1 * Thu Sep 12 2013 Dan Walsh <dwalsh@redhat.com> - 0.3.4-1
- Update to latest version/applying patches - Update to latest version/applying patches
- Move binary to /usr/sbin rather then /sbin - Move binary to /usr/sbin rather then /sbin