Compare commits

...
Sign in to create a new pull request.

58 commits

Author SHA1 Message Date
Maxwell G
f8937eb77a Rebuild for golang 1.25.2 2025-10-10 11:10:20 -05:00
Maxwell G
c749037af1 Rebuild for golang-1.25.0 2025-08-15 18:32:36 -05:00
Lokesh Mandvekar
bc41311897
simplify gating.yaml 2025-08-01 14:55:51 -04:00
Lokesh Mandvekar
20152b5b78
Switch to TMT for tests 2025-07-29 08:54:40 -04:00
Lokesh Mandvekar
5050fb326d
Remove unnecessary stuff from spec file 2025-07-29 08:54:40 -04:00
Fedora Release Engineering
88e605d698 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:22:51 +00:00
Fedora Release Engineering
af9f11c2c0 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 21:14:32 +00:00
Fedora Release Engineering
3ee046b6b9 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:27:53 +00:00
Maxwell G
7143c18a51
Rebuild for golang 1.22.0 2024-02-11 23:32:38 +00:00
Fedora Release Engineering
da96fc1a24 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 10:39:00 +00:00
Fedora Release Engineering
b6fe9940c0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:37:02 +00:00
Lokesh Mandvekar
27e8c567ab
bump to v1.2.10
Resolves: #2218663
2023-10-20 17:30:22 +05:30
Fedora Release Engineering
f5914e0b64 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:38:32 +00:00
RH Container Bot
aaeb9efbc2 auto bump to v1.2.9 2023-04-18 16:02:07 +00:00
Lokesh Mandvekar
6029d3dea1 migrated to SPDX license
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-03-06 17:02:08 +05:30
Lokesh Mandvekar
ed6e6734ab ExclusiveArch: golang_arches_future
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-02-08 20:59:48 +05:30
Fedora Release Engineering
4245f81edc Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:26:49 +00:00
RH Container Bot
24e1c0d9e8 auto bump to v1.2.8 2022-10-17 15:05:52 +00:00
RH Container Bot
f23961e422 auto bump to v1.2.7 2022-10-12 11:03:50 +00:00
Lokesh Mandvekar
7a1ca241c3 Revert "auto bump to v1.2.6"
This reverts commit f695fe0757 by
autobuilder.
2022-10-07 13:36:54 -04:00
RH Container Bot
f695fe0757 auto bump to v1.2.6 2022-10-07 15:14:12 +00:00
Lokesh Mandvekar
f6b112051c add comment about Source0 tarball source
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-04 15:42:58 -04:00
Lokesh Mandvekar
eed31dbdef adjust macros for getting correct version
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-04 14:51:53 -04:00
Lokesh Mandvekar
eb89f37659 remove debbuild macros to comply with fedora guidelines
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-10-04 14:47:57 -04:00
Lokesh Mandvekar
c619846e89 Fix debbuild maintainer issue
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-08-16 14:31:22 -04:00
Fedora Release Engineering
eb4ba043a6 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 01:37:15 +00:00
Maxwell G
569622f0de
Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang 2022-07-19 13:58:52 -05:00
RH Container Bot
12712a60dc auto bump to v1.2.6 2022-07-11 13:07:15 +00:00
Robert-André Mauchin
7c6c2cc67d Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 2022-06-18 12:16:12 +02:00
Lokesh Mandvekar
6d281ff84e build deb packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-05-27 10:05:56 -04:00
Lokesh Mandvekar
13a1b88435 bump to v1.2.5
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-03-25 14:16:50 -04:00
Fedora Release Engineering
6e0993f21d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 22:01:24 +00:00
Lokesh Mandvekar
549895ef91 oci-seccomp-bpf-hook-1.2.4-0.10.git7a25813
- Resolves: #1987746 - FTBFS issues

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-07-29 13:56:27 -04:00
Fedora Release Engineering
67eda2df3f - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 16:53:23 +00:00
RH Container Bot
a6db1a6bb5 oci-seccomp-bpf-hook-1.0.1-0.8.gitb58c502
- bump to 1.0.1
- autobuilt b58c502

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-06-19 04:10:30 +00:00
RH Container Bot
c6ac6db7f3 oci-seccomp-bpf-hook-1.2.4-0.7.git4f66654
- autobuilt 4f66654

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-06-11 04:11:51 +00:00
RH Container Bot
2fa11559fc oci-seccomp-bpf-hook-1.2.4-0.6.git4a30d95
- autobuilt 4a30d95

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-05-06 12:43:28 +00:00
RH Container Bot
08f9734a05 oci-seccomp-bpf-hook-1.2.4-0.5.git1910bb0
- bump to 1.2.4
- autobuilt 1910bb0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-04-28 12:29:15 +00:00
Lokesh Mandvekar
ab95792a5e oci-seccomp-bpf-hook-1.2.2-0.4.git50e7112
- requires bcc

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-02-04 11:32:08 -05:00
Lokesh Mandvekar
f112b741a5 oci-seccomp-bpf-hook-1.2.2-0.3.git50e7112
- use latest master commit to check gating tests

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-01-28 08:50:49 -05:00
Lokesh Mandvekar
30bcfd9777 temp patch to fix armv7hl build
From: David Benoit <dbenoit@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-01-28 08:49:14 -05:00
Ed Santiago
d9dabc69eb add gating tests
That is:
 . a -tests subpackage containing the 'test' subdirectory
 . a gating.yaml file of the proper form
 . a tests subdirectory containing the proper incantations

Signed-off-by: Ed Santiago <santiago@redhat.com>
2021-01-28 06:35:38 -07:00
Lokesh Mandvekar
775741546f do not build for armv7hl
also update CGO_CFLAGS formatting

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-01-27 11:25:01 -05:00
Lokesh Mandvekar
98bff6bd71 oci-seccomp-bpf-hook-1.2.2-0.1.git4e42394
- built latest master commit

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-01-27 08:32:57 -05:00
Fedora Release Engineering
1622aa44a4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 22:11:51 +00:00
Jindrich Novy
c386b4ac75 oci-seccomp-bpf-hook-1.2.0-4.fc34
- use the same arch definitions as present in the bcc package

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-10-02 10:29:22 +02:00
Jindrich Novy
439a759ae0 oci-seccomp-bpf-hook-1.2.0-3.fc34
- exclude also armv7hl arch as bcc is not built there

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-10-02 09:34:56 +02:00
Jindrich Novy
bd7cd8fcf3 oci-seccomp-bpf-hook-1.2.0-2.fc34
- fix spec file to accommodate the new upstream release

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-09-30 20:21:19 +02:00
Jindrich Novy
f77e6051e8 oci-seccomp-bpf-hook-1.2.0-1.fc34
- update to
  https://github.com/containers/oci-seccomp-bpf-hook/releases/tag/v1.2.0

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-09-30 15:20:04 +02:00
Fedora Release Engineering
e64fe494c4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 06:46:34 +00:00
Fedora Release Engineering
d5c011c822 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:23:17 +00:00
Jindrich Novy
95d64a7043 oci-seccomp-bpf-hook-1.1.1-1.fc33
- update to
  https://github.com/containers/oci-seccomp-bpf-hook/releases/tag/v1.1.1

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-07-17 10:26:04 +02:00
Jindrich Novy
0265d48e3e oci-seccomp-bpf-hook-1.1.0-2.fc33
- switch to mainline releases

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2020-07-17 10:19:59 +02:00
Lokesh Mandvekar
a78e3e3cd8 oci-seccomp-bpf-hook-1.1.0-1.1.git05a82a1
- bump version
- reuse Makefile targets

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-05-19 08:15:48 -04:00
Lokesh Mandvekar
a22e275c52 remove unused remote subpackage defs
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-04-14 11:08:41 -04:00
Lokesh Mandvekar
020a994cd6 enhances podman and cri-o
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-04-14 10:51:08 -04:00
Lokesh Mandvekar
86c83d8d25 correct %gobuild definition
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-02-17 14:40:43 -05:00
Lokesh Mandvekar
8afebad6aa oci-seccomp-bpf-hook-0.0.1-0.6.gitba7bbb16
- Resolves: #1799105 - solve ftbfs and build latest upstream commit

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-02-17 14:24:01 -05:00
8 changed files with 82 additions and 67 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

2
.gitignore vendored
View file

@ -1 +1 @@
/oci-seccomp-bpf-hook-3baa603a.tar.gz
/*.tar.gz

9
gating.yaml Normal file
View file

@ -0,0 +1,9 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View file

@ -1,8 +1,4 @@
%global with_devel 0
%global with_bundled 1
%global with_debug 1
%global with_check 0
%global with_unit_test 0
%if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil}
@ -11,34 +7,21 @@
%global debug_package %{nil}
%endif
# %if ! 0% {?gobuild:1}
%define gobuild(o:) go build -tags="$BUILDTAGS" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
#% endif
%global provider github
%global provider_tld com
%global project containers
%global repo oci-seccomp-bpf-hook
# https://github.com/containers/oci-seccomp-bpf-hook
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global git0 https://%{provider}.%{provider_tld}/%{project}/%{repo}
%global commit0 3baa603ae910f2aad29ea694b78b2f7f34b5d5ce
%global shortcommit0 %(c=%{commit0}; echo ${c:0:8})
# bcc is built only for these arches
ExclusiveArch: x86_64 %{power64} aarch64 s390x
%global gomodulesmode GO111MODULE=on
Name: oci-seccomp-bpf-hook
Version: 0.0.1
Release: 0.5.git%{shortcommit0}%{?dist}
Version: 1.2.10
License: Apache-2.0 and BSD-2-Clause and BSD-3-Clause and ISC and MIT
Release: %autorelease
# use the same arch definitions as present in the bcc package
ExclusiveArch: x86_64 %{power64} aarch64 s390x armv7hl
Summary: OCI Hook to generate seccomp json files based on EBF syscalls used by container
License: ASL 2.0
URL: %{git0}
Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
BuildRequires: golang-github-cpuguy83-md2man
URL: https://github.com/containers/%{name}
# Tarball fetched from upstream
Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: golang
BuildRequires: go-md2man
BuildRequires: go-rpm-macros
BuildRequires: glib2-devel
BuildRequires: glibc-devel
BuildRequires: bcc-devel
@ -46,40 +29,54 @@ BuildRequires: git
BuildRequires: gpgme-devel
BuildRequires: libseccomp-devel
BuildRequires: make
Requires: bcc
Enhances: podman
Enhances: cri-o
%description
%{summary}
%{repo} provides a library for applications looking to use
%{name} provides a library for applications looking to use
the Container Pod concept popularized by Kubernetes.
%package remote
Summary: Remote Oci-Seccomp-Bpf client
%package tests
Summary: Tests for %{name}
%description remote
Requires: %{name} = %{version}-%{release}
Requires: bats
Requires: podman
%description tests
%{summary}
%{repo} provides a library for applications looking to use
the Container Pod concept popularized by Kubernetes.
This package contains system tests for %{name}
%prep
%autosetup -Sgit -n %{repo}-%{commit0}
%autosetup -Sgit -n %{name}-%{version}
sed -i 's;HOOK_BIN_DIR;%{_libexecdir}/oci/hooks.d;' %{name}.json
sed -i '/$(HOOK_DIR)\/%{name}.json/d' Makefile
%build
mkdir _build
pushd _build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../../ src/%{import_path}
popd
ln -s vendor src
%set_build_flags
export CGO_CFLAGS=$CFLAGS
# These extra flags present in $CFLAGS have been skipped for now as they break the build
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-annobin-cc1//g')
%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
%endif
export LDFLAGS="-X main.version=%{version}"
%gobuild -o bin/%{name} .
export GOPATH=$(pwd)/_build:$(pwd)
export GO111MODULE=off
export BUILDTAGS=""
BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}
%{__make} docs
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} OCI-SECCOMP-BPF_VERSION=%{version} install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install.docs-nobuild install-nobuild
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
cp -pav test/. %{buildroot}/%{_datadir}/%{name}/test/system
%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
@ -109,22 +106,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%{_datadir}/containers/oci/hooks.d/%{name}.json
%{_mandir}/man1/%{name}.1*
%files tests
%license LICENSE
%{_datadir}/%{name}/test
%changelog
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.5.git3baa603a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Nov 05 2019 Jindrich Novy <jnovy@redhat.com> - 0.0.1-0.4.git3baa603a
- limit arches to only those supported by bcc so that this can be built
* Mon Nov 04 2019 Jindrich Novy <jnovy@redhat.com> - 0.0.1-0.3.git3baa603a
- fix the license - should be ASL 2.0
- use %%gobuild
* Mon Nov 04 2019 Jindrich Novy <jnovy@redhat.com> - 0.0.1-0.2.git3baa603a
- pull in golang deps as BR
* Mon Sep 23 2019 Jindrich Novy <jnovy@redhat.com> - 0.0.1-0.1.git3baa603a
- fix spec file and build
* Sun Sep 22 2019 Dan Walsh <dwalsh@redhat.com> - 0.0.1
- Initial Version
%autochangelog

5
plans/main.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Run all smoke tests
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (oci-seccomp-bpf-hook-3baa603a.tar.gz) = c2a6cbd5a16e2c60f8a2dabb377918d4e161e39570b42ec73de51eb139950b8be4b278b3952987af8df0b7327b06d5fcc1dc13bda35083b0c037b9ebc0f354af
SHA512 (v1.2.10.tar.gz) = 184045dbbc2d6a08c49939f9fb1dc1ed1c24d5e33005f2f8f3d4d09d2f2edac0f97cf30c27b5fb0afa478a2eb377657952de505076bbddf4be013c11e1c8bac3

2
tests/main.fmf Normal file
View file

@ -0,0 +1,2 @@
summary: bats tests
test: ./test_osbh.sh

14
tests/test_osbh.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash -e
# Log program and kernel versions
echo "Important package versions:"
(
uname -r
rpm -qa | egrep 'podman|conmon|crun|runc|iptable|slirp|systemd|container-selinux' | sort
) | sed -e 's/^/ /'
# Log environment; or at least the useful bits
echo "Environment:"
env | grep -v LS_COLORS= | sort | sed -e 's/^/ /'
bats /usr/share/oci-seccomp-bpf-hook/test/system