5 Commits

5 changed files with 31 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94b7cd8f9b1fb63341abf166d66d1264aa5136f6fc0f72d28ff9f8af1fcf3c0b
size 3707821

3
checksec-3.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de8d9d50754c0e952dd1e747c5c2028ae5c92d02e27796f957e76e5edfab3119
size 3708025

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Mar 2 12:35:52 UTC 2025 - Marcus Meissner <meissner@suse.com>
- build with pie
-------------------------------------------------------------------
Fri Feb 21 14:33:40 UTC 2025 - Marcus Meissner <meissner@suse.com>
- updated to 3.0.0 release:
- rewritten in go
-------------------------------------------------------------------
Thu May 9 13:35:01 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package checksec
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2013-2021 Fedora Project Authors
#
# All modifications and additions to the file contributed by third parties
@@ -18,22 +18,18 @@
Name: checksec
Version: 2.7.1
Version: 3.0.0
Release: 0
Summary: Utility to check binaries for system hardening
License: BSD-3-Clause
URL: https://github.com/slimm609/checksec.sh
Source0: https://github.com/slimm609/checksec.sh/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Requires: binutils
Requires: file
Requires: findutils
Requires: gawk
Requires: procps
Requires: which
BuildArch: noarch
Source1: vendor.tar.bz2
BuildRequires: golang-packaging
BuildRequires: golang(API)
%description
Checksec is a bash script to check the properties of executables (like PIE,
Checksec is a GO program to check the properties of executables (like PIE,
RELRO, PaX, Canaries, ASLR, Fortify Source). It has been originally written by
Tobias Klein and the original source is available here:
http://www.trapkit.de/tools/checksec.html
@@ -47,21 +43,23 @@ designed to test what *standard* Linux OS and PaX (http://pax.grsecurity.net/)
security features are being used.
%prep
%autosetup -n %{name}.sh-%{version} -p 1
sed -i 's~^#!%{_bindir}/env bash~#!%{_bindir}/bash~' checksec
sed -i 's/pkg_release=false/pkg_release=true/' checksec
%autosetup -p 1
tar xf %SOURCE1
%build
# noop
mkdir build
cd build
go build -buildmode=pie ..
%install
cd build
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -pm 0755 %{name} %{buildroot}%{_bindir}
cd ..
install -pm 0644 extras/man/%{name}.1 %{buildroot}%{_mandir}/man1
%files
%license LICENSE.txt
%license LICENSE
%doc ChangeLog README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}

3
vendor.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c13332bcd06e34f71b8325b777ac7a2483596b75fde397a33f582020fbb2f21f
size 1450866