]>
Commit | Line | Data |
---|---|---|
a52bee30 ER |
1 | Summary: Tool to check system for binary-hardening |
2 | Name: checksec | |
806d030e | 3 | Version: 1.7.4 |
a52bee30 ER |
4 | Release: 1 |
5 | License: BSD | |
6 | Group: Development/Tools | |
b0635d72 ER |
7 | Source0: https://github.com/slimm609/checksec.sh/archive/%{version}/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 8e963bc27f58d14c9b3657600a5c298e | |
806d030e | 9 | URL: https://github.com/slimm609/checksec.sh |
a52bee30 ER |
10 | Requires: binutils |
11 | BuildArch: noarch | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Modern Linux distributions offer some mitigation techniques to make it | |
16 | harder to exploit software vulnerabilities reliably. Mitigations such | |
17 | as RELRO, NoExecute (NX), Stack Canaries, Address Space Layout | |
18 | Randomization (ASLR) and Position Independent Executables (PIE) have | |
19 | made reliably exploiting any vulnerabilities that do exist far more | |
20 | challenging. | |
21 | ||
22 | The checksec script is designed to test what *standard* Linux OS and | |
23 | PaX <http://pax.grsecurity.net/> security features are being used. | |
24 | ||
25 | As of version 1.3 the script also lists the status of various Linux | |
26 | kernel protection mechanisms. | |
27 | ||
28 | checksec can check binary-files and running processes for hardening | |
29 | features. | |
30 | ||
31 | %prep | |
b0635d72 | 32 | %setup -qn %{name}.sh-%{version} |
a52bee30 ER |
33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
b0635d72 | 36 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man7} |
a52bee30 | 37 | install -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name} |
b0635d72 | 38 | install -p extras/man/checksec.7* $RPM_BUILD_ROOT%{_mandir}/man7 |
a52bee30 ER |
39 | |
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
b0635d72 | 45 | %doc README.md LICENSE.txt ChangeLog |
a52bee30 | 46 | %attr(755,root,root) %{_bindir}/%{name} |
b0635d72 | 47 | %{_mandir}/man7/checksec.7* |