.gear/rules | 3 + .../tags/036d19bf96d1aa753aeb9d75b266482a7ac1a801 | 23 +++ .gear/tags/list | 1 + .gear/upstream/remotes | 3 + libseccomp.spec | 163 +++++++++++++++++++++ 5 files changed, 193 insertions(+) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..bc9c9df --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +tar: v@version@:. +diff: v@version@:. . name=@name@-@version@.patch +copy?: *.patch diff --git a/.gear/tags/036d19bf96d1aa753aeb9d75b266482a7ac1a801 b/.gear/tags/036d19bf96d1aa753aeb9d75b266482a7ac1a801 new file mode 100644 index 0000000..79d43e8 --- /dev/null +++ b/.gear/tags/036d19bf96d1aa753aeb9d75b266482a7ac1a801 @@ -0,0 +1,23 @@ +object f33f95014b36f97b42f0c2290e96d5c31647ed10 +type commit +tag v2.5.4 +tagger Tom Hromatka 1650547648 -0600 + +version 2.5.4 +-----BEGIN PGP SIGNATURE----- + +iQJLBAABCAA2FiEER6aPzjfH1wJP1l4RNWzmLCtSQJkFAmJhW8AYHHRvbS5ocm9t +YXRrYUBvcmFjbGUuY29tAAoJEDVs5iwrUkCZFEYP+MxqTdTkCy8dOVo2g78yFAkq +ybDY28qFMS0du10HNahAVA4jvUw94ucpgWpUq0YXnHiZw/xlou1ovpblJsa1U3W+ +B0biZ4vZQvg+CuwLUEdlMX8YyXtzJOaTGyQOezcz5lp28dLKEf7OlYVpQWIxpcZY +YF31PkJ4PntqfML/HG3tc4ng0/ufaPsp+q0mMHJ/XR1yuzOO7n36LsKb5gQYCYPx +PwrwD/kYEc0V7tSgODLNspaedML2BoOAiQDxgNhiWXSAYcEXmji1H4/LbLpHcTWv +MgWB9vY8uNC3cyeQvlE/1Mzk8O35uHKe5kDO7AhHCKddteacP1bIV7VEohrvP55c +uQAHkUsbeeDvjYSNWYhkgm3G5rWdSW9GeKTjzs52P0DfekjnnvVueKniI6VVAC99 +gzwz5+OKERs5dvjAS9laBGuj/S7LCDy4iBu15ag5fM7V41XBtoelbCKfmL88T40E +xqXZMT+wBkfu7DAg+KWV0l9BOT+QfqNzkBIGHECCBkkJQ/5lGQR1vkPwFDnh/Ogr +ktHP1BEVSD58Kuwkt+gTmZq7cyBw8l1yQnHZmJUH5I0YU/QulKU4VVZejhrUwcAY +7FLYaGdaf0AiJ/0Wf8nk9+IWv5eGc6Ty+sRmQYaAZ/fZu+HyqsKb9dtNUUVFGGUn +s5nbs5GJB+Rb6RPm1Bs= +=l/lU +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..5d3db02 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +036d19bf96d1aa753aeb9d75b266482a7ac1a801 v2.5.4 diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes new file mode 100644 index 0000000..61f634f --- /dev/null +++ b/.gear/upstream/remotes @@ -0,0 +1,3 @@ +[remote "upstream"] + url = https://github.com/seccomp/libseccomp.git + fetch = +refs/heads/*:refs/remotes/upstream/* diff --git a/libseccomp.spec b/libseccomp.spec new file mode 100644 index 0000000..cdaa8a3 --- /dev/null +++ b/libseccomp.spec @@ -0,0 +1,163 @@ +%define _unpackaged_files_terminate_build 1 +%define _stripped_files_terminate_build 1 +%set_verify_elf_method strict + +Name: libseccomp +Version: 2.5.4 +Release: alt3 +Summary: High level interface to the Linux Kernel's seccomp filter +License: LGPLv2.1+ +Group: System/Libraries +Url: https://github.com/seccomp/libseccomp + +#https://github.com/seccomp/libseccomp.git +Source: %name-%version.tar +Patch1: %name-%version.patch + +BuildRequires: gperf +%{?!_without_check:%{?!_disable_check: +BuildRequires: /proc +}} + +%description +The libseccomp library provides and easy to use, platform independent, +interface to the Linux Kernel's syscall filtering mechanism: seccomp. +The libseccomp API is designed to abstract away the underlying BPF based +syscall filter language and present a more conventional function-call +based filtering interface that should be familiar to, and easily adopted +by application developers. + +%package devel +Summary: Development files of %name +Group: Development/C +Requires: %name = %EVR + +%description devel +The libseccomp library provides and easy to use, platform independent, +interface to the Linux Kernel's syscall filtering mechanism: seccomp. +The libseccomp API is designed to abstract away the underlying BPF based +syscall filter language and present a more conventional function-call +based filtering interface that should be familiar to, and easily adopted +by application developers. + +This package contains development files of %name. + +%prep +%setup +%patch1 -p1 + +%build +%autoreconf +%configure --disable-static --enable-silent-rules +%make_build V=1 + +%install +%makeinstall_std V=1 + +# Relocate shared library from %_libdir/ to /%_lib/. +mkdir -p %buildroot/%_lib +for f in %buildroot%_libdir/*.so; do + t=$(readlink -v "$f") + ln -rsnf %buildroot/%_lib/"$t" "$f" +done +mv %buildroot%_libdir/*.so.* %buildroot/%_lib/ + +%check +unset MAKEFLAGS +export LIBSECCOMP_TSTCFG_JOBS=0 \ + LIBSECCOMP_TSTCFG_TYPE=live \ + LIBSECCOMP_TSTCFG_MODE_LIST=c +%make_build check V=1 + +install -p tools/scmp_api_level %buildroot%_bindir +install -p tools/scmp_app_inspector %buildroot%_bindir +install -p tools/scmp_arch_detect %buildroot%_bindir +install -p tools/scmp_bpf_disasm %buildroot%_bindir +install -p tools/scmp_bpf_sim %buildroot%_bindir + +%define _customdocdir %_docdir/%name + +%files +/%_lib/lib*.so.* + +%files devel +%doc CHANGELOG CREDITS *.md src/syscalls.csv +%_bindir/scmp_* +%_includedir/* +%_libdir/*.so +%_pkgconfigdir/* +%_man1dir/* +%_man3dir/* + +%changelog +* Mon Mar 27 2023 Vitaly Chikunov 2.5.4-alt3 +- spec: Move doc and developer tools into -devel package. + +* Wed Feb 01 2023 Vitaly Chikunov 2.5.4-alt2 +- spec: Verbose build and add %%check section. + +* Fri Jun 03 2022 Alexey Shabalin 2.5.4-alt1 +- new version 2.5.4 + +* Sat Nov 06 2021 Alexey Shabalin 2.5.3-alt1 +- new version 2.5.3 + +* Mon Oct 11 2021 Alexey Shabalin 2.5.2-alt1 +- new version 2.5.2 + +* Tue Dec 08 2020 Alexey Shabalin 2.5.1-alt1 +- new version 2.5.1 + +* Fri Aug 07 2020 Alexey Shabalin 2.5.0-alt1 +- new version 2.5.0 + +* Fri May 08 2020 Alexey Shabalin 2.4.3-alt1 +- new version 2.4.3 + +* Thu Jan 30 2020 Anton Farygin 2.4.2-alt2 +- add upstream fix for chrony FTBFS + +* Fri Dec 13 2019 Alexey Shabalin 2.4.2-alt1 +- new version 2.4.2 + +* Wed Apr 24 2019 Alexey Shabalin 2.4.1-alt1 +- 2.4.1 + +* Fri Mar 22 2019 Alexey Shabalin 2.4.0-alt1 +- 2.4.0 +- do not build python bindings +- Fixes for the following security vulnerabilities: + + CVE-2019-9893 64-bit argument comparisons do not work correctly + +* Tue Jan 22 2019 Alexey Shabalin 2.3.3-alt2 +- Removed ubt macros. + +* Thu Mar 22 2018 Aleksei Nikiforov 2.3.3-alt1.1 +- (NMU) Rebuilt with python-3.6.4. + +* Tue Feb 13 2018 Alexey Shabalin 2.3.3-alt1 +- 2.3.3 + +* Fri Dec 15 2017 Alexey Shabalin 2.3.2-alt1 +- 2.3.2 + +* Tue Jun 14 2016 Alexey Shabalin 2.3.1-alt1 +- 2.3.1 + +* Wed Apr 20 2016 Alexey Shabalin 2.3.0-alt1 +- 2.3.0 + +* Thu Mar 17 2016 Ivan Zakharyaschev 2.2.3-alt1.1 +- (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 + (for ABI dependence and new python3(*) reqs) + +* Thu Dec 17 2015 Alexey Shabalin 2.2.3-alt1 +- 2.2.3 +- relocate shared libraries from %_libdir/ to /%_lib/. + +* Thu Aug 27 2015 Afanasov Dmitry 2.1.1-alt2.git20141021 +- fix version in pkg-config file + +* Wed Jan 07 2015 Eugeny A. Rostovtsev (REAL) 2.1.1-alt1.git20141021 +- Initial build for Sisyphus +