youki: one filter per job type (PROPOSED, an example)
PROPOSED, an example. Nothing installs these filters. They show the per-job union on a real container runtime, beside holger-scan-worker/.
Heimdall is a defensive sandbox. This directory holds static seccomp filters for youki itself: the Ignalina/youki fork, branch feat/seccomp-backend-trait 5aeca235, a release build with --no-default-features --features systemd,v2,seccomp, glibc (it links libseccomp.so.2), sha256 5ca042b0bc3fe7a83505e0230becbd76fa1d8243680f9d1b6aa0eeea609a78d3. A host runs youki one subcommand at a time, so each subcommand is a job type with a filter of its own (owner rule, 2026-11-12), and each filter is the UNION of a measured part and Mímir's possible set (owner rule, 2026-11-11).
for each [[job]] J of workload.toml (create, start, exec, delete):
measured M_J = heimdall profile gen --job J (the runs of J alone) jobs/J/x86_64-glibc.json
possible G_J = mimir-exec --root main --cut <every other subcommand>, jobs/J/graph/youki.possible.json
with the C half (libbpf)
filter U_J = M_J ∪ G_J jobs/J/union/x86_64-glibc.{json,oci.json,rs}
| job | filter | measured | only from the possible set | possible calls | dangerous calls left |
create |
132 | 88 | 44 | 123 | 44 |
start |
78 | 42 | 36 | 71 | 17 |
exec |
134 | 70 | 64 | 125 | 44 |
delete |
94 | 42 | 52 | 86 | 21 |
The scope: the real entry, the sibling jobs cut
Each job is rooted at youki's main, not at its subcommand function, and every other subcommand is cut (17 cuts: commands::start::start, commands::kill::kill, ... for create). main runs a prefix in every job before it dispatches, and a root at the subcommand would drop it. Here that prefix makes memfd_create: pentacle::syscall::memfd_create (youki's sealed self-copy against CVE-2019-5736) and tracing-journald's memfd (main → observability::init). Rooted at the subcommands, memfd_create was measured in all four jobs but had no call site.
bpf comes from C: libbpf's sys_bpf (libbpf/src/bpf.c:75, 17 call sites), reached from libcgroups::v2::devices::bpf::prog when the cgroup v2 devices controller loads its program. The C half is in the possible set (--dump <make>/c-source), so bpf has its call sites in create and exec.
How it was made (oden, 2026-11-12)
scripts/make.sh:cargo mimir make --with-c --max-instructions 50000000in the tool image (nordisk-mimir-tools:608fe349plus libseccomp-dev, libelf-dev and zlib1g-dev). The debug ELF (148 MB) ran out of the default budget, so the build is--release: 10,406 functions, no refusal; the C half captured libbpf.scripts/possible.sh:mimir-execper job over the make's source, exec-dump, std and c-source dumps, with the job's root and cuts.scripts/run-jobs.sh: the jobs on busybox 1.37 (sha256:66a6306d…), with the rootfs read-only: three create → start → exec (×2) → delete cycles, adelete --forceof a running container, and three error paths (start, exec and delete of no container).MODE=proberuns each job underheimdall profile probe-exec.MODE=enforceruns each underheimdall profile enforcewith its job's filter.createis probed until the container exits: a filter on youki is inherited by the container, socreate's measured part holds the container init and the busybox workload too.
Rootful only. The runs need real root, a rootful sudo podman run --privileged. youki's cgroup v2 devices controller loads a BPF program and raises RLIMIT_MEMLOCK for it. A rootless podman cannot go past the host's hard limit (8 MiB on oden), so create fails there with "bpf error: Failed to increase rlimit".
Enforced
Under heimdall profile enforce, every job under its own filter: 31 of 31 results pass. Every exit is the same as under probe (the error paths 1, 255 and 1 too). Each workload printed its end marker, and each exec printed its output. The negative control has every job under the start filter: create dies by SIGSYS (exit 159).
The dangerous calls left
M: measured (and possible). G: from the possible set only.
- create (44). M: mount, umount2, pivot_root, unshare, sethostname, mount_setattr, move_mount, open_tree, fsopen, fsconfig, fsmount, mknodat, capset, setresuid, setresgid, bpf, memfd_create, socket, connect, bind, listen, accept4, sendmsg, execve, clone, clone3, prctl, symlink, mprotect. G: setns, seccomp (
libcontainer::seccomp::load_program), personality, mknod, symlinkat, setdomainname, perf_event_open, kill, tgkill, sendto, ioctl, and std's spawn (chroot, setuid, setgid, setgroups). - start (17). M: socket, connect, sendto (the notify socket), execve, clone3, memfd_create, mprotect. G: clone, prctl, ioctl, kill, tgkill, sendmsg, chroot, setuid, setgid, setgroups.
- exec (44). M: setns, capset, setresuid, setresgid, socket, connect, bind, listen, accept4, sendmsg, sendto, execve, clone, clone3, ioctl, prctl, memfd_create, mprotect. G: the container init path that exec shares with create (mount, pivot_root, unshare, bpf and the others).
- delete (21). M: kill, execve, clone3, memfd_create, mprotect. G: socket, connect, sendto, sendmsg, the new mount API (fsopen, fsconfig, fsmount, open_tree), clone, prctl, ioctl, tgkill, chroot, setuid, setgid, setgroups.