Skip to content

Instantly share code, notes, and snippets.

@Icenowy
Created August 4, 2016 09:29
Show Gist options
  • Save Icenowy/e12597258078037af7cac1ab614dd80e to your computer and use it in GitHub Desktop.
Save Icenowy/e12597258078037af7cac1ab614dd80e to your computer and use it in GitHub Desktop.
Name: elfix
Version: 0.9.2
Release: 1%{?dist}
Summary: Utilities for marking ELF files for PaX.
License: GPL-3.0
URL: https://dev.gentoo.org/~blueness/elfix/
Source0: %{name}-%{version}.tar.gz
BuildRequires: elfutils-devel
BuildRequires: glibc-devel
BuildRequires: libattr-devel
%description
Utilities for marking ELF files for PaX by Hardened Gentoo maintainers.
These utilities can make both PT_PAX flags and XATTR_PAX flags.
%prep
%setup -q
%build
%configure --enable-ptpax --enable-xtpax
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%files
%defattr(-,root,root,-)
/usr/sbin/paxctl-ng
/usr/sbin/migrate-pax
/usr/sbin/paxmark.sh
/usr/sbin/pypaxctl
/usr/sbin/revdep-pax
%dir /usr/share/man/man1
/usr/share/man/man1/paxctl-ng.1.gz
/usr/share/man/man1/revdep-pax.1.gz
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment