Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hack/ci/Vagrantfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ EOF
# Load the prebuilt container image
podman load -i /vagrant/image.tar

# Fix SELinux policy for eBPF device filters
# https://github.com/containers/crun/issues/1879
# Install policy tools if not present
dnf install -y selinux-policy-devel checkpolicy

# Compile and install the SELinux module
checkmodule -M -m -o /vagrant/hack/ci/ebpf-fix.mod /vagrant/hack/ci/ebpf-fix.te
semodule_package -o /vagrant/hack/ci/ebpf-fix.pp -m /vagrant/hack/ci/ebpf-fix.mod
semodule -i /vagrant/hack/ci/ebpf-fix.pp

# Setup CRI-O
printf '[crio.runtime]\nselinux = true' >/etc/crio/crio.conf.d/30-selinux.conf
# Setup CNI to disable IPv6
Expand Down
9 changes: 9 additions & 0 deletions hack/ci/ebpf-fix.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module ebpf-fix 1.0;

require {
type init_t;
type container_runtime_t;
class bpf prog_run;
}

allow init_t container_runtime_t:bpf prog_run;
2 changes: 1 addition & 1 deletion nix/derivation-bpf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ with pkgs; buildGoModule rec {
buildInputs = [
glibc
glibc.static
libbpf_1
libbpf
libseccomp
zlib.static
];
Expand Down
2 changes: 1 addition & 1 deletion nix/derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ with pkgs; buildGoModule rec {
glibc
glibc.static
libapparmor
libbpf_1
libbpf
libseccomp
zlib.static
(zstd.override { static = true; })
Expand Down
10 changes: 5 additions & 5 deletions nix/nixpkgs.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"url": "https://github.com/nixos/nixpkgs",
"rev": "75f3a1394d3d59bfe7bc2b37251f1eb1cee4f5f4",
"date": "2025-10-14T12:37:53Z",
"path": "/nix/store/8qars9gz2j2v63h2fxqpi5qpk97amj9s-nixpkgs",
"sha256": "1bn3k2kdbmsvx5y2y1m4w1f675w7h6avl6ih24xjzsb8iw0lfzzy",
"hash": "sha256-/n9HAY9o6S87ETAaupWBh5djXOCkBi986VvX1aaYw64=",
"rev": "81bbe7ec251d3e255883bb076c6f94430ee30938",
"date": "2025-11-25T08:32:41Z",
"path": "/nix/store/v7xqf20z0b2zvr41a6ffiwjvf828hri5-nixpkgs",
"sha256": "1dpg3qhc999c005a38q4mdz3pc5yd5c93c317756f56xpakyw5p1",
"hash": "sha256-4Rbup7rdFGfKOWGwkVhpvrA7fqsEo6EKACylxCAe77Y=",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
Expand Down
Loading