gvisor: syscall deny-list for the three runsc units
SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_* (three) open_by_handle_at kexec_load kexec_file_load setns, answering ENOSYS, pinned in the run, probe and build templates and in GVisorHardening, so the run/probe and build readbacks refuse a unit without it. Not @debug or @mount. setns closes the CAP_SETUID route's cgroup-namespace half. Checked against the S3 runs' per-phase syscalls; root-runner 20261129T201018-5ef7fa: every phase works under it (probe, run, stop, kill/restart, build, log streams, captures, which are refreshed here); 20261129T201912-b5d867: from inside each unit, with the runsc parent's own filters (read by PTRACE_SECCOMP_GET_FILTER) and its set or without SYS_ADMIN, each denied call is ENOSYS, the cgroup-namespace route is refused, and the /proc/<pid>/root route still reads the box's files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 files changed,
+1,019
−364
internal/demobuild/gvisor_test.go+4 −0internal/execsandbox/hardening.go+41 −0internal/execsandbox/hardening_test.go+26 −0internal/host/gvisor_containment_rootrunner_linux_test.go+170 −16internal/host/gvisor_seccomp_rootrunner_linux_test.go+364 −0internal/host/gvisor_units_test.go+2 −0internal/host/testdata/gvisor-systemd257/README.md+8 −5internal/host/testdata/gvisor-systemd257/build-active.all.show+44 −44internal/host/testdata/gvisor-systemd257/build-active.cat+12 −10internal/host/testdata/gvisor-systemd257/build-active.show+44 −43internal/host/testdata/gvisor-systemd257/build-before.all.show+21 −21internal/host/testdata/gvisor-systemd257/build-before.cat+12 −10internal/host/testdata/gvisor-systemd257/build-before.show+21 −20internal/host/testdata/gvisor-systemd257/capture.json+38 −38internal/host/testdata/gvisor-systemd257/probe-active.all.show+31 −31internal/host/testdata/gvisor-systemd257/probe-active.cat+2 −0internal/host/testdata/gvisor-systemd257/probe-active.show+31 −30internal/host/testdata/gvisor-systemd257/probe-before.all.show+7 −7internal/host/testdata/gvisor-systemd257/probe-before.cat+2 −0internal/host/testdata/gvisor-systemd257/probe-before.show+7 −6internal/host/testdata/gvisor-systemd257/run-active.all.show+35 −35internal/host/testdata/gvisor-systemd257/run-active.cat+2 −0internal/host/testdata/gvisor-systemd257/run-active.show+35 −34internal/host/testdata/gvisor-systemd257/run-before.all.show+7 −7internal/host/testdata/gvisor-systemd257/run-before.cat+2 −0internal/host/testdata/gvisor-systemd257/run-before.show+8 −7internal/host/units/carlos-demo-build-gvisor@.service+2 −0internal/host/units/carlos-instance-gvisor-probe.service+2 −0internal/host/units/carlos-instance-gvisor@.service+2 −0internal/instancectl/gvisorunit_seccomp_test.go+37 −0
diff --git a/internal/demobuild/gvisor_test.go b/internal/demobuild/gvisor_test.go| index 3a0da10c4..4ac888d2c 100644 |
| --- a/internal/demobuild/gvisor_test.go |
| +++ b/internal/demobuild/gvisor_test.go |
| @@ -612,6 +612,10 @@ func TestGVisorBuildRefusesUncontained(t *testing.T) { |
| "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", |
| "IPAddressDeny": "", |
| "InaccessiblePaths": "", |
| + // gvisor follow-ups: the syscall deny-list, as systemd 257 shows a |
| + // unit with none, and its default action (kill). |
| + "SystemCallFilter": "~", |
| + "SystemCallErrorNumber": "2147483646", |
| } |
| for key, old := range uncontained { |
| p := gvisorBuildShownFixture(t, l) |
diff --git a/internal/execsandbox/hardening.go b/internal/execsandbox/hardening.go| index f3f2209f0..5cf29ca18 100644 |
| --- a/internal/execsandbox/hardening.go |
| +++ b/internal/execsandbox/hardening.go |
| @@ -61,6 +61,23 @@ type hardeningProperty struct{ name, directive, shown string } |
| // kernel already refuses /proc/<pid>/root of another unit's runsc |
| // parent (below), and nothing here was measured without /proc/sys, |
| // which ProcSubset=pid would hide. |
| +// - SystemCallFilter=: a deny-list, not an allow-list (gvisor |
| +// follow-ups, after Fable's S3 F4 R1 review): the kernel interfaces |
| +// nothing here uses, each a way past the bounding set's intent, plus |
| +// setns. Checked against every syscall the units made in the S3 |
| +// root-runner runs (run, probe, build, the stop hooks, and the failed |
| +// starts' cleanup in the leave-one-out): of these only runsc's own |
| +// io_uring_setup probe ever ran, and it takes ENOSYS |
| +// (SystemCallErrorNumber=) as a kernel without io_uring. @debug |
| +// (ptrace) and @mount stay allowed: runsc needs both. setns closes |
| +// the CAP_SETUID route's second half: a child that switches to a |
| +// host user can open that user's /proc/<pid>/ns/cgroup, and the |
| +// parent, holding SYS_ADMIN, could join the box's cgroup namespace |
| +// and leave its unit's cgroup. Nothing in these units calls it |
| +// (runsc makes its namespaces with clone). The filter is installed |
| +// for every command of the unit, and inherited by every process |
| +// runsc starts; under systrap a guest's own calls are trapped by the |
| +// sentry's filter first, so the guest sees no change. |
| // - ProtectControlGroups=strict: the unit runs in a cgroup namespace of |
| // its own with /sys/fs/cgroup read-only. Round 2 measured it on all |
| // three units (root-runner 20261129T152006-cf5bb7): runsc runs, and |
| @@ -85,6 +102,16 @@ type hardeningProperty struct{ name, directive, shown string } |
| // (TestRootGVisorContainment) checks each, with the unit's set and |
| // without SYS_ADMIN. |
| // |
| +// One route stays open with or without SYS_ADMIN (gvisor follow-ups, |
| +// witnessed): a child that switches, with SETUID and SETGID, to the user |
| +// of a host process holding no capabilities opens its /proc/<pid>/root |
| +// and hands it back, and root reads the box's files through it. No unit |
| +// property closes it and keeps runsc working: ProtectProc= does not hide |
| +// a process from its own user, and PrivatePIDs= gives each command its |
| +// own PID namespace, so runsc kill and delete would look for the wrong |
| +// process IDs. The same child's /proc/<pid>/ns/cgroup is refused at |
| +// setns, which the deny-list denies. |
| +// |
| // A process that did leave the unit's cgroup would lose the unit's IP |
| // filter (the instance metadata service and the box's IAM role would be |
| // reachable), its memory, CPU and task limits, and the stop proof, which |
| @@ -112,12 +139,26 @@ var gvisorHardening = []hardeningProperty{ |
| {"LockPersonality", "yes", "yes"}, |
| {"RestrictRealtime", "yes", "yes"}, |
| {"SystemCallArchitectures", "native", "native"}, |
| + {"SystemCallFilter", gvisorSyscallDeny, gvisorSyscallDenyShown}, |
| + {"SystemCallErrorNumber", "ENOSYS", "38"}, |
| {"CapabilityBoundingSet", strings.Join(gvisorCapabilities, " "), strings.ToLower(strings.Join(gvisorCapabilities, " "))}, |
| {"IPAddressDeny", "any", "0.0.0.0/0 ::/0"}, |
| {"InaccessiblePaths", gvisorHidden, gvisorHidden}, |
| {"TemporaryFileSystem", gvisorEmptied, gvisorEmptied}, |
| } |
| +// gvisorSyscallDeny is the units' syscall deny-list (the leading ~): the |
| +// kernel module, reboot and kexec, swap, raw I/O, clock, CPU emulation, |
| +// obsolete and keyring groups, eBPF, perf events, userfaultfd, io_uring, |
| +// file handles and namespace joins. Not @debug or @mount. |
| +const gvisorSyscallDeny = "~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns" |
| + |
| +// gvisorSyscallDenyShown is how systemd 257.13 with libseccomp 2.6.0 |
| +// shows gvisorSyscallDeny: the groups expanded, sorted, every name |
| +// libseccomp knows whether or not this architecture has the call. The |
| +// same on amd64 (docs-t1) and arm64 (root-runner 20261129T200358-ff77a7). |
| +const gvisorSyscallDenyShown = "~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver" |
| + |
| // gvisorCapabilities is the measured host bounding set, in kernel order |
| // (the order systemctl show prints them in). |
| var gvisorCapabilities = []string{"CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_SETGID", "CAP_SETUID", "CAP_SYS_ADMIN", "CAP_SETFCAP"} |
diff --git a/internal/execsandbox/hardening_test.go b/internal/execsandbox/hardening_test.go| index ce70d5605..84c60266f 100644 |
| --- a/internal/execsandbox/hardening_test.go |
| +++ b/internal/execsandbox/hardening_test.go |
| @@ -2,6 +2,7 @@ package execsandbox |
| import ( |
| "reflect" |
| + "slices" |
| "strings" |
| "testing" |
| ) |
| @@ -15,6 +16,10 @@ func TestGVisorHardening(t *testing.T) { |
| // the mode here and yes above. |
| "ProtectControlGroupsEx": "strict", |
| "LockPersonality": "yes", "RestrictRealtime": "yes", "SystemCallArchitectures": "native", |
| + // gvisor follow-ups: the syscall deny-list, groups expanded as |
| + // systemd 257 shows them, answering ENOSYS (38). |
| + "SystemCallFilter": "~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver", |
| + "SystemCallErrorNumber": "38", |
| // F4: the measured host bounding set, as systemctl shows it. |
| "CapabilityBoundingSet": "cap_chown cap_dac_override cap_setgid cap_setuid cap_sys_admin cap_setfcap", |
| "IPAddressDeny": "0.0.0.0/0 ::/0", |
| @@ -35,6 +40,8 @@ func TestGVisorHardening(t *testing.T) { |
| t.Fatal("caller mutation changed the pinned contract") |
| } |
| const lines = "ProtectSystem=strict\nProtectHome=yes\nPrivateTmp=yes\nProtectKernelTunables=yes\nProtectKernelModules=yes\nProtectKernelLogs=yes\nProtectClock=yes\nProtectHostname=yes\nProtectControlGroups=strict\nLockPersonality=yes\nRestrictRealtime=yes\nSystemCallArchitectures=native\n" + |
| + "SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns\n" + |
| + "SystemCallErrorNumber=ENOSYS\n" + |
| "CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP\n" + |
| "IPAddressDeny=any\n" + |
| "InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh\n" + |
| @@ -69,6 +76,25 @@ func TestGVisorHostContainment(t *testing.T) { |
| if _, ok := got["NoNewPrivileges"]; ok { |
| t.Error("NoNewPrivileges pinned, but runsc refuses it") |
| } |
| + // The deny-list leaves runsc what it needs: ptrace (@debug) and the |
| + // mount calls (@mount), and the calls it makes its sandbox with. |
| + denied := strings.Fields(strings.TrimPrefix(got["SystemCallFilter"], "~")) |
| + if !strings.HasPrefix(got["SystemCallFilter"], "~") || len(denied) == 0 { |
| + t.Fatalf("SystemCallFilter=%q is not a deny-list", got["SystemCallFilter"]) |
| + } |
| + for _, needed := range []string{"ptrace", "process_vm_readv", "mount", "umount2", "pivot_root", "chroot", "unshare", "clone", "clone3", "seccomp", "setuid", "setgid", "capset", "prctl", "openat2"} { |
| + if slices.Contains(denied, needed) { |
| + t.Errorf("runsc needs %s, which the deny-list refuses", needed) |
| + } |
| + } |
| + for _, refused := range []string{"bpf", "perf_event_open", "userfaultfd", "io_uring_setup", "io_uring_enter", "io_uring_register", "open_by_handle_at", "kexec_load", "kexec_file_load", "init_module", "finit_module", "reboot", "swapon", "keyctl", "clock_settime", "setns"} { |
| + if !slices.Contains(denied, refused) { |
| + t.Errorf("the deny-list lets %s through", refused) |
| + } |
| + } |
| + if got["SystemCallErrorNumber"] != "38" { |
| + t.Errorf("SystemCallErrorNumber=%q: a denied call must answer ENOSYS, not kill runsc", got["SystemCallErrorNumber"]) |
| + } |
| } |
| // systemd keeps IP access lists in a hashed set, so the two families read |
diff --git a/internal/host/gvisor_containment_rootrunner_linux_test.go b/internal/host/gvisor_containment_rootrunner_linux_test.go| index 6f1421434..d78ca5656 100644 |
| --- a/internal/host/gvisor_containment_rootrunner_linux_test.go |
| +++ b/internal/host/gvisor_containment_rootrunner_linux_test.go |
| @@ -14,6 +14,7 @@ import ( |
| "os" |
| "os/exec" |
| "path/filepath" |
| + "runtime" |
| "slices" |
| "sort" |
| "strconv" |
| @@ -86,6 +87,8 @@ const ( |
| gvisorConsoleSock = "/run/carlos-console/f4.sock" |
| gvisorEscapeCgroup = "f4-escape" |
| gvisorProcCanary = "f4-proc-canary" |
| + // nobody: the /proc route's victim runs as it. |
| + gvisorVictimUID = 65534 |
| ) |
| type gvisorWitnessTargets struct { |
| @@ -99,6 +102,10 @@ type gvisorWitnessTargets struct { |
| // OtherRoot, when set, is a file under another unit's runsc parent's |
| // /proc/<pid>/root (round 2, ruling 6). |
| OtherRoot string |
| + // VictimPID is a host process of VictimUID that holds no |
| + // capabilities, the CAP_SETUID /proc route's target (gvisor |
| + // follow-ups). |
| + VictimPID, VictimUID int |
| } |
| type gvisorWitnessResult struct { |
| @@ -149,9 +156,11 @@ func init() { |
| return |
| } |
| switch os.Args[1] { |
| + case gvisorProcRouteChild: |
| + gvisorProcRouteChildMain(os.Args[2:]) |
| case "gvisor-containment-enter": |
| // Join the unit's cgroup (so its IP firewall), then its mount namespace. |
| - if len(os.Args) != 6 { |
| + if len(os.Args) != 7 { |
| os.Exit(80) |
| } |
| if err := os.WriteFile(filepath.Join(os.Args[2], "cgroup.procs"), []byte(strconv.Itoa(os.Getpid())), 0); err != nil { |
| @@ -160,20 +169,27 @@ func init() { |
| } |
| // And its cgroup namespace (ProtectControlGroups=strict gives the |
| // unit its own; round 2, ruling 5). |
| - err := syscall.Exec("/usr/bin/nsenter", []string{"nsenter", "--mount=/proc/" + os.Args[3] + "/ns/mnt", "--cgroup=/proc/" + os.Args[3] + "/ns/cgroup", "--", gvisorWitnessBinary, "gvisor-containment-bound", os.Args[4], os.Args[5]}, []string{"PATH=/usr/sbin:/usr/bin:/sbin:/bin"}) |
| + err := syscall.Exec("/usr/bin/nsenter", []string{"nsenter", "--mount=/proc/" + os.Args[3] + "/ns/mnt", "--cgroup=/proc/" + os.Args[3] + "/ns/cgroup", "--", gvisorWitnessBinary, "gvisor-containment-bound", os.Args[4], os.Args[5], os.Args[6]}, []string{"PATH=/usr/sbin:/usr/bin:/sbin:/bin"}) |
| fmt.Fprintln(os.Stderr, "nsenter:", err) |
| os.Exit(82) |
| case "gvisor-containment-bound": |
| - // Take on the given bounding set (the units set no no_new_privs: |
| - // runsc refuses it), then exec so that root's permitted and |
| - // effective sets are recomputed from it. |
| - if len(os.Args) != 4 { |
| + // Take on the unit's seccomp filters, as its runsc parent carries |
| + // them (gvisor follow-ups), and the given bounding set (the units |
| + // set no no_new_privs: runsc refuses it), then exec so that root's |
| + // permitted and effective sets are recomputed from it. The filters |
| + // go on this thread, the one that execs. |
| + if len(os.Args) != 5 { |
| os.Exit(83) |
| } |
| mask, err := strconv.ParseUint(os.Args[2], 16, 64) |
| if err != nil { |
| os.Exit(84) |
| } |
| + runtime.LockOSThread() |
| + if err := gvisorInstallFilters(os.Args[4]); err != nil { |
| + fmt.Fprintln(os.Stderr, "seccomp:", err) |
| + os.Exit(86) |
| + } |
| for i := range gvisorCapNames { |
| if mask&(1<<i) == 0 { |
| if _, _, e := syscall.AllThreadsSyscall(syscall.SYS_PRCTL, unix.PR_CAPBSET_DROP, uintptr(i), 0); e != 0 { |
| @@ -204,7 +220,7 @@ func gvisorWitnessChecks(t gvisorWitnessTargets) gvisorWitnessResult { |
| for _, line := range strings.Split(string(raw), "\n") { |
| k, v, _ := strings.Cut(line, ":") |
| switch k { |
| - case "CapBnd", "CapEff", "CapPrm", "NoNewPrivs": |
| + case "CapBnd", "CapEff", "CapPrm", "NoNewPrivs", "Seccomp", "Seccomp_filters": |
| r.Status[k] = strings.TrimSpace(v) |
| } |
| } |
| @@ -292,6 +308,12 @@ func gvisorWitnessChecks(t gvisorWitnessTargets) gvisorWitnessResult { |
| r.Checks[c.name] = verdict(dial(c.network, c.address)) |
| r.Millis[c.name] = time.Since(began).Milliseconds() |
| } |
| + // The deny-list (gvisor follow-ups): each call's errno, ENOSYS being |
| + // the filter's; and the CAP_SETUID /proc route. |
| + for name, call := range gvisorSeccompCalls { |
| + r.Checks["sys-"+name] = gvisorSeccompVerdict(call()) |
| + } |
| + r.Checks["procroute-root"], r.Checks["procroute-cgroupns"], r.Status["ProcRouteCgroup"] = gvisorProcRoute(t) |
| for name, c := range map[string]struct { |
| argv []string |
| want func(string) bool |
| @@ -339,6 +361,9 @@ func gvisorPollUntil(timeout, every time.Duration, done func() bool) bool { |
| // gvisorContainment owns the witness's host-side listeners and canaries. |
| type gvisorContainment struct { |
| targets gvisorWitnessTargets |
| + // unitFilters is the fewest seccomp filters a witnessed unit's runsc |
| + // parent carried (gvisor follow-ups), 0 before the first witness. |
| + unitFilters atomic.Int64 |
| } |
| func newGVisorContainment(t *testing.T) *gvisorContainment { |
| @@ -436,6 +461,16 @@ func newGVisorContainment(t *testing.T) *gvisorContainment { |
| serve(l) |
| t.Cleanup(func() { os.Remove(path) }) |
| } |
| + // The /proc route's target (gvisor follow-ups): a host process of |
| + // another user, in the box's cgroup namespace, with no capabilities, |
| + // as carlos-relay or an admin's shell would be. |
| + victim := exec.Command("/usr/bin/sleep", "900") |
| + victim.SysProcAttr = &syscall.SysProcAttr{Credential: &syscall.Credential{Uid: gvisorVictimUID, Gid: gvisorVictimUID}} |
| + if err := victim.Start(); err != nil { |
| + t.Fatal(err) |
| + } |
| + t.Cleanup(func() { victim.Process.Kill(); victim.Wait() }) |
| + c.targets.VictimPID, c.targets.VictimUID = victim.Process.Pid, gvisorVictimUID |
| if raw, err := os.ReadFile("/etc/resolv.conf"); err == nil { |
| for _, line := range strings.Split(string(raw), "\n") { |
| f := strings.Fields(line) |
| @@ -473,6 +508,26 @@ func (c *gvisorContainment) control(t *testing.T) (gvisorWitnessResult, []string |
| skipped = append(skipped, check) |
| t.Logf("F4_SKIPPED %s: the host control could not do it either (%s); not witnessed", check, r.Checks[check]) |
| } |
| + // The deny-list's calls exist on this box and the /proc route works |
| + // from the host, or their refusal inside proves nothing. |
| + // A call this kernel does not build (the arm64 cloud kernel has no |
| + // kexec_file_load) is skipped by name; the brief's own three may not be. |
| + for name := range gvisorSeccompCalls { |
| + got := r.Checks["sys-"+name] |
| + if got != "ENOSYS" && got != "" { |
| + continue |
| + } |
| + if gvisorSeccompRequired[name] { |
| + t.Fatalf("host control sys-%s: %q; the box lacks the call and the witness would prove nothing", name, got) |
| + } |
| + skipped = append(skipped, "sys-"+name) |
| + t.Logf("F4_SKIPPED sys-%s: this kernel lacks the call (%q); not witnessed", name, got) |
| + } |
| + for _, check := range []string{"procroute-root", "procroute-cgroupns"} { |
| + if r.Checks[check] != "ok" { |
| + t.Fatalf("host control %s: %s; the witness would prove nothing", check, r.Checks[check]) |
| + } |
| + } |
| t.Logf("F4_HOST_CONTROL %+v skipped=%v", r, skipped) |
| return r, skipped |
| } |
| @@ -529,18 +584,27 @@ func (c *gvisorContainment) insideWith(unit string, dropAdmin bool, targets gvis |
| return r, "", err |
| } |
| ns, _ := os.Readlink("/proc/" + pid + "/ns/cgroup") |
| - main := fmt.Sprintf("main pid %s CapBnd=%s NoNewPrivs=%s CgroupNS=%s", pid, status["CapBnd"], status["NoNewPrivs"], ns) |
| + main := fmt.Sprintf("main pid %s CapBnd=%s NoNewPrivs=%s CgroupNS=%s Seccomp_filters=%s", pid, status["CapBnd"], status["NoNewPrivs"], ns, status["Seccomp_filters"]) |
| mask, err := strconv.ParseUint(status["CapBnd"], 16, 64) |
| if err != nil { |
| return r, main, err |
| } |
| + n, _ := strconv.Atoi(pid) |
| + filters, err := gvisorSeccompFilters(n) |
| + if err != nil { |
| + return r, main, fmt.Errorf("the unit's seccomp filters: %w", err) |
| + } |
| + main += fmt.Sprintf(" dumped=%d", len(filters)) |
| + if have := c.unitFilters.Load(); len(filters) > 0 && (have == 0 || int64(len(filters)) < have) { |
| + c.unitFilters.Store(int64(len(filters))) |
| + } |
| if dropAdmin { |
| mask &^= 1 << gvisorCapSysAdmin |
| } |
| raw, _ := json.Marshal(targets) |
| ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) |
| defer cancel() |
| - cmd := exec.CommandContext(ctx, gvisorWitnessBinary, "gvisor-containment-enter", filepath.Join("/sys/fs/cgroup", cgroup), pid, fmt.Sprintf("%016x", mask), string(raw)) |
| + cmd := exec.CommandContext(ctx, gvisorWitnessBinary, "gvisor-containment-enter", filepath.Join("/sys/fs/cgroup", cgroup), pid, fmt.Sprintf("%016x", mask), string(raw), gvisorEncodeFilters(filters)) |
| var stderr strings.Builder |
| cmd.Stderr = &stderr |
| b, err := cmd.Output() |
| @@ -618,7 +682,7 @@ func gvisorUnitKind(cgroup string) string { |
| } |
| type gvisorSample struct { |
| - Kind, Phase, Comm, Argv, Uid, CapPrm, CapEff, CapBnd, CapAmb, NoNewPrivs, Seccomp string |
| + Kind, Phase, Comm, Argv, Uid, CapPrm, CapEff, CapBnd, CapAmb, NoNewPrivs, Seccomp, SeccompFilters string |
| // UserNS is "init" for the box's user namespace and "child" for one |
| // runsc made: a new user namespace starts with a full bounding set of |
| // its own, so only init-namespace sets are bounded by the unit's. |
| @@ -642,6 +706,7 @@ type gvisorObserver struct { |
| checks map[string]map[int]int // kind/comm/ns -> cap -> count |
| denied map[string]map[int]int |
| sysc map[string]map[int]bool // kind/comm -> syscall numbers |
| + enosys map[string]map[int]bool // kind/phase/comm -> syscalls answered ENOSYS |
| initNS string |
| pending map[int]int // pid -> cap awaiting its return |
| pendNS map[int]string |
| @@ -672,7 +737,7 @@ func gvisorTraceWrite(path, value string, appendTo bool) error { |
| } |
| func newGVisorObserver(t *testing.T) *gvisorObserver { |
| - o := &gvisorObserver{t: t, pids: map[int]string{}, samples: map[gvisorSample]bool{}, checks: map[string]map[int]int{}, denied: map[string]map[int]int{}, sysc: map[string]map[int]bool{}, pending: map[int]int{}, pendNS: map[int]string{}, stop: make(chan struct{})} |
| + o := &gvisorObserver{t: t, pids: map[int]string{}, samples: map[gvisorSample]bool{}, checks: map[string]map[int]int{}, denied: map[string]map[int]int{}, sysc: map[string]map[int]bool{}, enosys: map[string]map[int]bool{}, pending: map[int]int{}, pendNS: map[int]string{}, stop: make(chan struct{})} |
| if raw, err := os.ReadFile("/proc/kallsyms"); err == nil { |
| for _, line := range strings.Split(string(raw), "\n") { |
| f := strings.Fields(line) |
| @@ -705,12 +770,20 @@ func newGVisorObserver(t *testing.T) *gvisorObserver { |
| t.Logf("capability tracing unavailable, sampling only: %v", err) |
| } else { |
| o.tracing = true |
| - filter := `comm == "runsc" || comm == "exe" || comm == "carlos"` |
| + // runsc renames its gofer, sandbox and helpers (runsc-gofer, |
| + // runsc-sandbox, runsc-fd-parking, gvisor-*): the deny-list check |
| + // needs their syscalls too (gvisor follow-ups). |
| + filter := `comm == "runsc" || comm == "exe" || comm == "carlos" || comm ~ "runsc-*" || comm ~ "gvisor*"` |
| if e := errors.Join(gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_enter/filter", filter, false), gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_enter/enable", "1", false)); e != nil { |
| t.Logf("syscall tracing unavailable: %v", e) |
| } else { |
| o.syscall = true |
| } |
| + // A call the seccomp filter refuses never reaches sys_enter; its |
| + // ENOSYS shows at sys_exit. |
| + if e := errors.Join(gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_exit/filter", "ret == -38 && ("+filter+")", false), gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_exit/enable", "1", false)); e != nil { |
| + t.Logf("ENOSYS tracing unavailable: %v", e) |
| + } |
| pipe, err := os.Open(gvisorTraceInstance + "/trace_pipe") |
| if err != nil { |
| t.Logf("trace_pipe: %v", err) |
| @@ -738,6 +811,7 @@ func (o *gvisorObserver) close() { |
| gvisorTraceWrite(gvisorTraceInstance+"/events/kprobes/carlos_cap/enable", "0", false) |
| gvisorTraceWrite(gvisorTraceInstance+"/events/kprobes/carlos_capr/enable", "0", false) |
| gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_enter/enable", "0", false) |
| + gvisorTraceWrite(gvisorTraceInstance+"/events/raw_syscalls/sys_exit/enable", "0", false) |
| } |
| o.done.Wait() |
| os.Remove(gvisorTraceInstance) |
| @@ -826,6 +900,26 @@ func (o *gvisorObserver) read(pipe io.Reader) { |
| o.denied[key][c]++ |
| } |
| o.mu.Unlock() |
| + case strings.Contains(line, "sys_exit:"): |
| + kind := o.kindOf(pid) |
| + if kind == "" { |
| + continue |
| + } |
| + i := strings.Index(line, "NR ") |
| + if i < 0 { |
| + continue |
| + } |
| + nr, err := strconv.Atoi(strings.Fields(line[i+3:])[0]) |
| + if err != nil { |
| + continue |
| + } |
| + key := kind + "/" + gvisorPhaseNow() + "/" + comm |
| + o.mu.Lock() |
| + if o.enosys[key] == nil { |
| + o.enosys[key] = map[int]bool{} |
| + } |
| + o.enosys[key][nr] = true |
| + o.mu.Unlock() |
| case strings.Contains(line, "sys_enter:"): |
| kind := o.kindOf(pid) |
| if kind == "" { |
| @@ -926,6 +1020,8 @@ func (o *gvisorObserver) record(kind string, pid int) { |
| s.NoNewPrivs = v |
| case "Seccomp": |
| s.Seccomp = v |
| + case "Seccomp_filters": |
| + s.SeccompFilters = v |
| } |
| } |
| if cmdline, err := os.ReadFile("/proc/" + strconv.Itoa(pid) + "/cmdline"); err == nil { |
| @@ -964,6 +1060,30 @@ func (f *gvisorLifecycle) resetGVisor() { |
| } |
| } |
| +// seccompFloor is the fewest seccomp filters any unit process in the |
| +// box's user namespace was sampled with, and who: each descends from a |
| +// unit command, so it carries at least the unit's filters, which a |
| +// process can never shed (gvisor follow-ups). |
| +func (o *gvisorObserver) seccompFloor() (fewest int, who string, n int) { |
| + o.mu.Lock() |
| + defer o.mu.Unlock() |
| + fewest = -1 |
| + for s := range o.samples { |
| + if s.UserNS != "init" || !s.Unit { |
| + continue |
| + } |
| + v, err := strconv.Atoi(s.SeccompFilters) |
| + if err != nil { |
| + continue |
| + } |
| + n++ |
| + if fewest < 0 || v < fewest { |
| + fewest, who = v, s.Kind+" "+s.Phase+" "+s.Argv |
| + } |
| + } |
| + return fewest, who, n |
| +} |
| + |
| // bounds is the union of the bounding sets sampled in phases starting |
| // with prefix in the box's user namespace, and how many samples there were. |
| func (o *gvisorObserver) bounds(prefix string) (union uint64, n int) { |
| @@ -1028,6 +1148,34 @@ func (o *gvisorObserver) report(t *testing.T, label string) (checked, kept uint6 |
| } |
| sort.Ints(nrs) |
| t.Logf("F4_SYSCALLS %s %s (%d): %v", label, k, len(nrs), nrs) |
| + // The deny-list against what the units ran (gvisor follow-ups): |
| + // a denied call here ran unfiltered. |
| + var denied []string |
| + for _, nr := range nrs { |
| + if name := gvisorDeniedName(nr); name != "" { |
| + denied = append(denied, name) |
| + } |
| + } |
| + if len(denied) > 0 { |
| + t.Logf("F4_DENYLIST_RAN %s %s: %v", label, k, denied) |
| + } |
| + } |
| + ekeys := make([]string, 0, len(o.enosys)) |
| + for k := range o.enosys { |
| + ekeys = append(ekeys, k) |
| + } |
| + sort.Strings(ekeys) |
| + for _, k := range ekeys { |
| + var names []string |
| + for nr := range o.enosys[k] { |
| + name := gvisorDeniedName(nr) |
| + if name == "" { |
| + name = strconv.Itoa(nr) |
| + } |
| + names = append(names, name) |
| + } |
| + sort.Strings(names) |
| + t.Logf("F4_ENOSYS %s %s: %v", label, k, names) |
| } |
| type role struct { |
| kind, argv, phase, userns string |
| @@ -1044,7 +1192,7 @@ func (o *gvisorObserver) report(t *testing.T, label string) (checked, kept uint6 |
| if err == nil && eff != full { |
| kept |= eff |
| } |
| - rows = append(rows, fmt.Sprintf("%s | %s | %s | %s | userns=%s | uid=%s | prm=%s eff=%s (%s) bnd=%s amb=%s | nnp=%s seccomp=%s", s.Kind, s.Phase, s.Comm, s.Argv, s.UserNS, s.Uid, s.CapPrm, s.CapEff, strings.Join(gvisorCapList(eff), ","), s.CapBnd, s.CapAmb, s.NoNewPrivs, s.Seccomp)) |
| + rows = append(rows, fmt.Sprintf("%s | %s | %s | %s | userns=%s | uid=%s | prm=%s eff=%s (%s) bnd=%s amb=%s | nnp=%s seccomp=%s filters=%s", s.Kind, s.Phase, s.Comm, s.Argv, s.UserNS, s.Uid, s.CapPrm, s.CapEff, strings.Join(gvisorCapList(eff), ","), s.CapBnd, s.CapAmb, s.NoNewPrivs, s.Seccomp, s.SeccompFilters)) |
| k := role{s.Kind, s.Argv, s.Phase, s.UserNS, s.Unit} |
| if roles[k] == nil { |
| roles[k] = &state{eff: map[string]bool{}, bnd: map[string]bool{}, prm: map[string]bool{}, nnp: map[string]bool{}, seccomp: map[string]bool{}, uid: map[string]bool{}} |
| @@ -1055,7 +1203,7 @@ func (o *gvisorObserver) report(t *testing.T, label string) (checked, kept uint6 |
| r.bnd[s.CapBnd] = true |
| r.prm[s.CapPrm] = true |
| r.nnp[s.NoNewPrivs] = true |
| - r.seccomp[s.Seccomp] = true |
| + r.seccomp[s.Seccomp+"/"+s.SeccompFilters] = true |
| r.uid[s.Uid] = true |
| } |
| sort.Strings(rows) |
| @@ -1079,7 +1227,7 @@ func (o *gvisorObserver) report(t *testing.T, label string) (checked, kept uint6 |
| t.Logf("F4_ROLE %s %s", label, line) |
| } |
| t.Logf("F4_RESULT %s checked=%v kept=%v", label, gvisorCapList(checked), gvisorCapList(kept)) |
| - o.checks, o.denied, o.sysc, o.samples, o.events = map[string]map[int]int{}, map[string]map[int]int{}, map[string]map[int]bool{}, map[gvisorSample]bool{}, 0 |
| + o.checks, o.denied, o.sysc, o.enosys, o.samples, o.events = map[string]map[int]int{}, map[string]map[int]int{}, map[string]map[int]bool{}, map[string]map[int]bool{}, map[gvisorSample]bool{}, 0 |
| return checked, kept |
| } |
| @@ -1645,6 +1793,7 @@ func checkContained(t *testing.T, label, unit string, dropAdmin bool, r gvisorWi |
| t.Logf("F4_COVER %s %s drop-sys-admin=%t: %s", label, check, dropAdmin, got) |
| } |
| } |
| + checkSeccomp(t, label, unit, dropAdmin, r, main, skipped) |
| // Every process in the unit, not only the main one. |
| out, _ := gvisorCommand(5*time.Second, "systemctl", "show", unit, "-p", "ControlGroup", "--value") |
| procs, _ := os.ReadFile(filepath.Join("/sys/fs/cgroup", strings.TrimSpace(out), "cgroup.procs")) |
| @@ -1888,11 +2037,16 @@ func TestRootGVisorContainment(t *testing.T) { |
| t.Errorf("no witness inside the %s unit", kind) |
| } |
| } |
| + fewest, who, sampled := o.seccompFloor() |
| + t.Logf("F4_SECCOMP_FLOOR unit-binary samples=%d fewest=%d (%s) unit=%d", sampled, fewest, who, c.unitFilters.Load()) |
| + if want := c.unitFilters.Load(); want == 0 || sampled == 0 || int64(fewest) < want { |
| + t.Errorf("a unit process ran with %d seccomp filters (%s), fewer than the unit's %d", fewest, who, want) |
| + } |
| o.report(t, "pinned") |
| t.Logf("F4_CONTROLS required=%d skipped=%v", len(gvisorAccessChecks)-len(skipped), skipped) |
| // The effective unit properties, as systemd reads them back. |
| for _, unit := range []string{"carlos-instance-gvisor-probe.service", instancectl.GVisorUnitName(gvisorFixtureHost)} { |
| - out, _ := gvisorCommand(5*time.Second, "systemctl", "show", unit, "-p", "CapabilityBoundingSet,NoNewPrivileges,ProtectControlGroups,ProtectControlGroupsEx,IPAddressDeny,IPAddressAllow,InaccessiblePaths,TemporaryFileSystem,BindPaths,BindReadOnlyPaths,ReadWritePaths") |
| + out, _ := gvisorCommand(5*time.Second, "systemctl", "show", unit, "-p", "CapabilityBoundingSet,NoNewPrivileges,ProtectControlGroups,ProtectControlGroupsEx,IPAddressDeny,IPAddressAllow,InaccessiblePaths,TemporaryFileSystem,SystemCallFilter,SystemCallErrorNumber,BindPaths,BindReadOnlyPaths,ReadWritePaths") |
| t.Logf("F4_EFFECTIVE %s:\n%s", unit, out) |
| } |
| } |
diff --git a/internal/host/gvisor_seccomp_rootrunner_linux_test.go b/internal/host/gvisor_seccomp_rootrunner_linux_test.go| new file mode 100644 |
| index 000000000..035c07d9d |
| --- /dev/null |
| +++ b/internal/host/gvisor_seccomp_rootrunner_linux_test.go |
| @@ -0,0 +1,364 @@ |
| +//go:build linux && rootrunner |
| + |
| +package host |
| + |
| +import ( |
| + "encoding/hex" |
| + "errors" |
| + "fmt" |
| + "os" |
| + "os/exec" |
| + "runtime" |
| + "slices" |
| + "sort" |
| + "strconv" |
| + "strings" |
| + "syscall" |
| + "testing" |
| + "unsafe" |
| + |
| + "golang.org/x/sys/unix" |
| +) |
| + |
| +// The syscall deny-list (gvisor follow-ups): what the witness checks of it |
| +// from inside each unit, and the CAP_SETUID /proc route. |
| +// |
| +// Seccomp is not joined the way the witness joins a unit's cgroup and |
| +// namespaces: a filter is inherited only from a parent. So the witness |
| +// reads the filters the kernel attached to the unit's runsc parent |
| +// (PTRACE_SECCOMP_GET_FILTER, from the host) and installs the same |
| +// programs on itself, in the same order, inside the unit's cgroup and |
| +// namespaces and before it takes the parent's bounding set. Its |
| +// Seccomp_filters count must then equal the parent's. |
| + |
| +// gvisorDeniedSyscalls are the deny-list's calls that every 64-bit box |
| +// architecture has, by number for this one: the trace's syscall numbers |
| +// are checked against them. The x86-only members of @raw-io, |
| +// @cpu-emulation and @obsolete are left out. |
| +var gvisorDeniedSyscalls = map[string]int{ |
| + "bpf": unix.SYS_BPF, "perf_event_open": unix.SYS_PERF_EVENT_OPEN, "userfaultfd": unix.SYS_USERFAULTFD, |
| + "io_uring_setup": unix.SYS_IO_URING_SETUP, "io_uring_enter": unix.SYS_IO_URING_ENTER, "io_uring_register": unix.SYS_IO_URING_REGISTER, |
| + "open_by_handle_at": unix.SYS_OPEN_BY_HANDLE_AT, "kexec_load": unix.SYS_KEXEC_LOAD, "kexec_file_load": unix.SYS_KEXEC_FILE_LOAD, |
| + "reboot": unix.SYS_REBOOT, "init_module": unix.SYS_INIT_MODULE, "finit_module": unix.SYS_FINIT_MODULE, "delete_module": unix.SYS_DELETE_MODULE, |
| + "swapon": unix.SYS_SWAPON, "swapoff": unix.SYS_SWAPOFF, "add_key": unix.SYS_ADD_KEY, "keyctl": unix.SYS_KEYCTL, "request_key": unix.SYS_REQUEST_KEY, |
| + "clock_settime": unix.SYS_CLOCK_SETTIME, "clock_adjtime": unix.SYS_CLOCK_ADJTIME, "settimeofday": unix.SYS_SETTIMEOFDAY, "adjtimex": unix.SYS_ADJTIMEX, |
| + "setns": unix.SYS_SETNS, |
| +} |
| + |
| +func gvisorDeniedName(nr int) string { |
| + for name, n := range gvisorDeniedSyscalls { |
| + if n == nr { |
| + return name |
| + } |
| + } |
| + return "" |
| +} |
| + |
| +// gvisorSeccompCalls are the denied calls the witness makes, each with |
| +// arguments the kernel refuses (or that do nothing) when the call is not |
| +// filtered, so the host control is harmless: the filter's answer is |
| +// ENOSYS (SystemCallErrorNumber=ENOSYS), which no missing capability |
| +// gives, so a refusal inside is the filter's and not the bounding set's. |
| +// A file descriptor a call does return is closed. |
| +var gvisorSeccompCalls = map[string]func() (uintptr, syscall.Errno){ |
| + "bpf": func() (uintptr, syscall.Errno) { // BPF_MAP_CREATE of no map type |
| + r, _, e := unix.Syscall(unix.SYS_BPF, 0, 0, 0) |
| + return r, e |
| + }, |
| + "perf_event_open": func() (uintptr, syscall.Errno) { // no attributes |
| + r, _, e := unix.Syscall6(unix.SYS_PERF_EVENT_OPEN, 0, 0, ^uintptr(0), ^uintptr(0), 0, 0) |
| + return r, e |
| + }, |
| + "userfaultfd": func() (uintptr, syscall.Errno) { // user-mode only, and an unknown flag |
| + r, _, e := unix.Syscall(unix.SYS_USERFAULTFD, 1|1<<30, 0, 0) |
| + return r, e |
| + }, |
| + "io_uring_setup": func() (uintptr, syscall.Errno) { // no parameters |
| + r, _, e := unix.Syscall(unix.SYS_IO_URING_SETUP, 0, 0, 0) |
| + return r, e |
| + }, |
| + "open_by_handle_at": func() (uintptr, syscall.Errno) { // no mount, no handle |
| + r, _, e := unix.Syscall(unix.SYS_OPEN_BY_HANDLE_AT, ^uintptr(0), 0, 0) |
| + return r, e |
| + }, |
| + "kexec_load": func() (uintptr, syscall.Errno) { // more segments than the kernel takes |
| + r, _, e := unix.Syscall6(unix.SYS_KEXEC_LOAD, 0, 1000, 0, 0, 0, 0) |
| + return r, e |
| + }, |
| + "kexec_file_load": func() (uintptr, syscall.Errno) { // an unknown flag |
| + r, _, e := unix.Syscall6(unix.SYS_KEXEC_FILE_LOAD, ^uintptr(0), ^uintptr(0), 0, 0, 1<<20, 0) |
| + return r, e |
| + }, |
| + "keyctl": func() (uintptr, syscall.Errno) { // an unknown operation |
| + r, _, e := unix.Syscall6(unix.SYS_KEYCTL, 0x7fffffff, 0, 0, 0, 0, 0) |
| + return r, e |
| + }, |
| + "swapon": func() (uintptr, syscall.Errno) { // no path |
| + r, _, e := unix.Syscall(unix.SYS_SWAPON, 0, 0, 0) |
| + return r, e |
| + }, |
| + "setns": func() (uintptr, syscall.Errno) { // no namespace |
| + r, _, e := unix.Syscall(unix.SYS_SETNS, ^uintptr(0), 0, 0) |
| + return r, e |
| + }, |
| +} |
| + |
| +// gvisorSeccompRequired are the calls the host control must have: a |
| +// kernel may leave the others out (CONFIG_KEXEC_FILE), and then they are |
| +// skipped by name. |
| +var gvisorSeccompRequired = map[string]bool{"bpf": true, "open_by_handle_at": true, "kexec_load": true, "setns": true} |
| + |
| +// gvisorSeccompVerdict is what a check records: "ok" when the call |
| +// returned, else the errno's name (ENOSYS is the filter's answer). |
| +func gvisorSeccompVerdict(r uintptr, e syscall.Errno) string { |
| + if e != 0 { |
| + if name := unix.ErrnoName(e); name != "" { |
| + return name |
| + } |
| + return e.Error() |
| + } |
| + if int(r) >= 0 { |
| + unix.Close(int(r)) |
| + } |
| + return "ok" |
| +} |
| + |
| +// gvisorSeccompFilters reads the classic BPF programs attached to pid, |
| +// newest first, through PTRACE_SECCOMP_GET_FILTER: seize, interrupt for |
| +// one ptrace-stop, read, detach. pid runs on unharmed. |
| +func gvisorSeccompFilters(pid int) ([][]byte, error) { |
| + runtime.LockOSThread() |
| + defer runtime.UnlockOSThread() |
| + if err := unix.PtraceSeize(pid); err != nil { |
| + return nil, fmt.Errorf("seize %d: %w", pid, err) |
| + } |
| + if err := unix.PtraceInterrupt(pid); err != nil { |
| + unix.PtraceDetach(pid) |
| + return nil, fmt.Errorf("interrupt %d: %w", pid, err) |
| + } |
| + var ws unix.WaitStatus |
| + if _, err := unix.Wait4(pid, &ws, unix.WALL, nil); err != nil { |
| + unix.PtraceDetach(pid) |
| + return nil, fmt.Errorf("wait %d: %w", pid, err) |
| + } |
| + defer unix.PtraceDetach(pid) |
| + var filters [][]byte |
| + for i := 0; ; i++ { |
| + n, _, e := unix.Syscall6(unix.SYS_PTRACE, unix.PTRACE_SECCOMP_GET_FILTER, uintptr(pid), uintptr(i), 0, 0, 0) |
| + if e == unix.ENOENT { |
| + return filters, nil |
| + } |
| + if e != 0 { |
| + return nil, fmt.Errorf("filter %d of %d: %w", i, pid, e) |
| + } |
| + buf := make([]byte, int(n)*int(unsafe.Sizeof(unix.SockFilter{}))) |
| + if _, _, e = unix.Syscall6(unix.SYS_PTRACE, unix.PTRACE_SECCOMP_GET_FILTER, uintptr(pid), uintptr(i), uintptr(unsafe.Pointer(&buf[0])), 0, 0); e != 0 { |
| + return nil, fmt.Errorf("filter %d of %d: %w", i, pid, e) |
| + } |
| + filters = append(filters, buf) |
| + } |
| +} |
| + |
| +func gvisorEncodeFilters(filters [][]byte) string { |
| + parts := make([]string, len(filters)) |
| + for i, f := range filters { |
| + parts[i] = hex.EncodeToString(f) |
| + } |
| + return strings.Join(parts, ",") |
| +} |
| + |
| +// gvisorInstallFilters installs the filters gvisorEncodeFilters wrote, |
| +// oldest first so their order is the parent's, on the calling thread, |
| +// which the caller has locked and from which it will exec. |
| +func gvisorInstallFilters(encoded string) error { |
| + if encoded == "" { |
| + return nil |
| + } |
| + parts := strings.Split(encoded, ",") |
| + for i := len(parts) - 1; i >= 0; i-- { |
| + b, err := hex.DecodeString(parts[i]) |
| + size := int(unsafe.Sizeof(unix.SockFilter{})) |
| + if err != nil || len(b) == 0 || len(b)%size != 0 { |
| + return fmt.Errorf("filter %d: bad program (%v)", i, err) |
| + } |
| + prog := unix.SockFprog{Len: uint16(len(b) / size), Filter: (*unix.SockFilter)(unsafe.Pointer(&b[0]))} |
| + if _, _, e := unix.RawSyscall(unix.SYS_SECCOMP, unix.SECCOMP_SET_MODE_FILTER, 0, uintptr(unsafe.Pointer(&prog))); e != 0 { |
| + return fmt.Errorf("install filter %d: %w", i, e) |
| + } |
| + runtime.KeepAlive(b) |
| + } |
| + return nil |
| +} |
| + |
| +// The CAP_SETUID /proc route (runbook, "What the host units contain"). A |
| +// child of the checking process switches to the victim's uid and gid, |
| +// which the parent's set allows, opens the victim's /proc/<pid>/root and |
| +// /proc/<pid>/ns/cgroup (same user, no capabilities on either side: the |
| +// kernel's ptrace read check passes) and hands both back over a socket. |
| +// The parent, root with the unit's set, then reads the box's secret |
| +// relative to the first, and joins the second (the box's cgroup |
| +// namespace) on a thread of its own. |
| +const gvisorProcRouteChild = "gvisor-procroute-child" |
| + |
| +// gvisorProcRouteChildMain is the child: argv pid, fd 3 the socket. Each |
| +// message is "root" or "ns" with the descriptor, or "root:<error>". |
| +func gvisorProcRouteChildMain(args []string) { |
| + if len(args) != 1 { |
| + os.Exit(90) |
| + } |
| + sock := 3 |
| + for _, name := range []string{"root", "ns"} { |
| + path := "/proc/" + args[0] + "/root" |
| + flags := unix.O_PATH | unix.O_DIRECTORY | unix.O_CLOEXEC |
| + if name == "ns" { |
| + path, flags = "/proc/"+args[0]+"/ns/cgroup", unix.O_RDONLY|unix.O_CLOEXEC |
| + } |
| + fd, err := unix.Open(path, flags, 0) |
| + if err != nil { |
| + unix.Sendmsg(sock, []byte(name+":"+err.Error()), nil, nil, 0) |
| + continue |
| + } |
| + unix.Sendmsg(sock, []byte(name), unix.UnixRights(fd), nil, 0) |
| + unix.Close(fd) |
| + } |
| + os.Exit(0) |
| +} |
| + |
| +// gvisorProcRoute runs the route for the witness's targets and returns |
| +// the root read's verdict, the cgroup namespace join's, and the joined |
| +// thread's cgroup membership when the join worked. |
| +func gvisorProcRoute(t gvisorWitnessTargets) (root, cgroupns, membership string) { |
| + if t.VictimPID == 0 { |
| + return "no victim", "no victim", "" |
| + } |
| + pair, err := unix.Socketpair(unix.AF_UNIX, unix.SOCK_SEQPACKET|unix.SOCK_CLOEXEC, 0) |
| + if err != nil { |
| + return err.Error(), err.Error(), "" |
| + } |
| + mine, theirs := os.NewFile(uintptr(pair[0]), "procroute"), os.NewFile(uintptr(pair[1]), "procroute-child") |
| + defer mine.Close() |
| + cmd := exec.Command(gvisorWitnessBinary, gvisorProcRouteChild, strconv.Itoa(t.VictimPID)) |
| + cmd.ExtraFiles = []*os.File{theirs} |
| + cmd.SysProcAttr = &syscall.SysProcAttr{Credential: &syscall.Credential{Uid: uint32(t.VictimUID), Gid: uint32(t.VictimUID)}} |
| + out, err := cmd.CombinedOutput() |
| + theirs.Close() |
| + if err != nil { |
| + e := fmt.Sprintf("child: %v: %s", err, strings.TrimSpace(string(out))) |
| + return e, e, "" |
| + } |
| + fds := map[string]int{} |
| + root, cgroupns = "no message", "no message" |
| + for range 2 { |
| + buf, oob := make([]byte, 512), make([]byte, unix.CmsgSpace(4)) |
| + n, oobn, _, _, err := unix.Recvmsg(pair[0], buf, oob, unix.MSG_DONTWAIT) |
| + if err != nil || n == 0 { |
| + break |
| + } |
| + name, failure, failed := strings.Cut(string(buf[:n]), ":") |
| + verdict := "open: " + failure |
| + if !failed { |
| + verdict = "no descriptor" |
| + if msgs, err := unix.ParseSocketControlMessage(oob[:oobn]); err == nil && len(msgs) == 1 { |
| + if got, err := unix.ParseUnixRights(&msgs[0]); err == nil && len(got) == 1 { |
| + fds[name], verdict = got[0], "" |
| + } |
| + } |
| + } |
| + if name == "root" { |
| + root = verdict |
| + } else { |
| + cgroupns = verdict |
| + } |
| + } |
| + if fd, ok := fds["root"]; ok { |
| + root = "ok" |
| + f, err := unix.Openat(fd, strings.TrimPrefix(t.Secret, "/"), unix.O_RDONLY|unix.O_CLOEXEC, 0) |
| + if err != nil { |
| + root = "read through it: " + err.Error() |
| + } else { |
| + b := make([]byte, 256) |
| + n, _ := unix.Read(f, b) |
| + unix.Close(f) |
| + if string(b[:max(n, 0)]) != gvisorCanaryBody { |
| + root = fmt.Sprintf("unexpected bytes %q", b[:max(n, 0)]) |
| + } |
| + } |
| + unix.Close(fd) |
| + } |
| + if fd, ok := fds["ns"]; ok { |
| + type joined struct{ verdict, membership string } |
| + done := make(chan joined) |
| + go func() { |
| + // This thread changes namespace and is never unlocked, so it |
| + // ends with the goroutine and nothing else runs in it. |
| + runtime.LockOSThread() |
| + if err := unix.Setns(fd, unix.CLONE_NEWCGROUP); err != nil { |
| + name := err.Error() |
| + var e syscall.Errno |
| + if errors.As(err, &e) && unix.ErrnoName(e) != "" { |
| + name = unix.ErrnoName(e) |
| + } |
| + done <- joined{verdict: name} |
| + return |
| + } |
| + b, _ := os.ReadFile("/proc/thread-self/cgroup") |
| + done <- joined{"ok", strings.TrimSpace(string(b))} |
| + }() |
| + j := <-done |
| + cgroupns, membership = j.verdict, j.membership |
| + unix.Close(fd) |
| + } |
| + return root, cgroupns, membership |
| +} |
| + |
| +// gvisorProcRouteRootWorks is the claim about the route's first half: a |
| +// child that switches to the victim's user opens its /proc/<pid>/root, |
| +// and root, with the unit's set or without SYS_ADMIN, reads the box's |
| +// secret through it. No deny-list entry or unit property closes it |
| +// without breaking runsc; see the runbook. Its second half, joining the |
| +// victim's cgroup namespace, is refused: setns is denied. |
| +const gvisorProcRouteRootWorks = true |
| + |
| +func gvisorMainField(main, key string) string { |
| + for _, f := range strings.Fields(main) { |
| + if v, ok := strings.CutPrefix(f, key+"="); ok { |
| + return v |
| + } |
| + } |
| + return "" |
| +} |
| + |
| +// checkSeccomp asserts the deny-list from inside the unit: the witness |
| +// carries the unit's filters, as many as its runsc parent, and every |
| +// denied call is the filter's ENOSYS, with the parent's set and without |
| +// SYS_ADMIN; and the /proc route is as gvisorProcRouteRootWorks says. |
| +func checkSeccomp(t *testing.T, label, unit string, dropAdmin bool, r gvisorWitnessResult, main string, skipped []string) { |
| + t.Helper() |
| + parent := gvisorMainField(main, "Seccomp_filters") |
| + if parent == "" || parent == "0" || parent != gvisorMainField(main, "dumped") || r.Status["Seccomp_filters"] != parent { |
| + t.Errorf("%s: witness Seccomp_filters=%q, the unit's runsc parent %q (dumped %q)", label, r.Status["Seccomp_filters"], parent, gvisorMainField(main, "dumped")) |
| + } |
| + names := make([]string, 0, len(gvisorSeccompCalls)) |
| + for name := range gvisorSeccompCalls { |
| + names = append(names, name) |
| + } |
| + sort.Strings(names) |
| + for _, name := range names { |
| + if slices.Contains(skipped, "sys-"+name) { |
| + continue |
| + } |
| + if got := r.Checks["sys-"+name]; got != "ENOSYS" { |
| + t.Errorf("%s: %s inside %s drop-sys-admin=%t: %q, want the filter's ENOSYS", label, name, unit, dropAdmin, got) |
| + } else { |
| + t.Logf("F4_SECCOMP %s %s drop-sys-admin=%t: %s refused ENOSYS", label, unit, dropAdmin, name) |
| + } |
| + } |
| + root, cg := r.Checks["procroute-root"], r.Checks["procroute-cgroupns"] |
| + t.Logf("F4_PROCROUTE %s %s drop-sys-admin=%t: root=%s cgroupns=%s membership=%q", label, unit, dropAdmin, root, cg, r.Status["ProcRouteCgroup"]) |
| + if (root == "ok") != gvisorProcRouteRootWorks { |
| + t.Errorf("%s: /proc route to the box's files inside %s drop-sys-admin=%t: %q; the documented claim (works=%t) no longer holds, update it", label, unit, dropAdmin, root, gvisorProcRouteRootWorks) |
| + } |
| + if cg == "ok" || cg == "" { |
| + t.Errorf("%s: /proc route joined the box's cgroup namespace inside %s drop-sys-admin=%t (%q)", label, unit, dropAdmin, r.Status["ProcRouteCgroup"]) |
| + } |
| +} |
diff --git a/internal/host/gvisor_units_test.go b/internal/host/gvisor_units_test.go| index 18890c12e..6212fbc8d 100644 |
| --- a/internal/host/gvisor_units_test.go |
| +++ b/internal/host/gvisor_units_test.go |
| @@ -23,6 +23,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/testdata/gvisor-systemd257/README.md b/internal/host/testdata/gvisor-systemd257/README.md| index 7cfd99bb8..fd488928e 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/README.md |
| +++ b/internal/host/testdata/gvisor-systemd257/README.md |
| @@ -1,8 +1,8 @@ |
| # systemd 257 captures |
| The 18 `.show`, `.all.show` and `.cat` files here are unedited systemd 257 |
| -output from root-runner run `20261129T181930-8ec904` (linux-arm64, instance |
| -`i-0d7b7e377a75515e7`), written by `TestRootGVisorSystemdCapture` from the |
| +output from root-runner run `20261129T201018-5ef7fa` (linux-arm64, instance |
| +`i-06e9bae0414ea2d76`), written by `TestRootGVisorSystemdCapture` from the |
| production units: the pinned runsc argv (`--platform=systrap |
| --directfs=true`, one `--root` per container) and the host containment of |
| gVisor flagship plan slice 3 after its round 2 fixes (F4: the six-capability |
| @@ -16,10 +16,13 @@ and F9's separate streams: the run and build units' stdout and stderr are |
| the journal, `OpenFile=` gives their ExecStart the log socket (run, shown |
| as the bare path) or the diagnostics file (build, F9 round 1, opened for |
| appending since round 2 and shown as `<path>::append`), and `runsc run |
| ---pass-fd=3:1,3:2` hands it to the guest. `capture.json` gives each |
| -file's size and sha256. |
| +--pass-fd=3:1,3:2` hands it to the guest; and the gVisor follow-ups' |
| +syscall deny-list (`SystemCallFilter=`, shown with its groups expanded, |
| +and `SystemCallErrorNumber=ENOSYS`, shown as `38`). `capture.json` gives |
| +each file's size and sha256. |
| -They replace the F9 round 1 captures (run `20261129T171517-1a57be`), |
| +They replace the F9 round 2 captures (run `20261129T181930-8ec904`), |
| +which replaced the F9 round 1 captures (run `20261129T171517-1a57be`), |
| which replaced the F9 captures (run `20261129T162829-1d7230`), which |
| replaced the F4 round 2 captures (run `20261129T152006-cf5bb7`), |
| which replaced the round 1 captures (run `20261129T140528-b55171`), which |
diff --git a/internal/host/testdata/gvisor-systemd257/build-active.all.show b/internal/host/testdata/gvisor-systemd257/build-active.all.show| index 8b5eeadb4..d27400679 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-active.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/build-active.all.show |
| @@ -24,7 +24,7 @@ GuessMainPID=yes |
| RestartPreventExitStatus= |
| RestartForceExitStatus= |
| SuccessExitStatus= |
| -MainPID=4241 |
| +MainPID=6854 |
| ControlPID=0 |
| BusName= |
| FileDescriptorStoreMax=0 |
| @@ -44,39 +44,39 @@ UID=0 |
| GID=0 |
| NRestarts=0 |
| OOMPolicy=kill |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| ExtraFileDescriptorNames= |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ExecMainStartTimestampMonotonic=93622700 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ExecMainStartTimestampMonotonic=145160872 |
| ExecMainExitTimestamp= |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ExecMainHandoffTimestampMonotonic=93721900 |
| -ExecMainPID=4241 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ExecMainHandoffTimestampMonotonic=145273220 |
| +ExecMainPID=6854 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[Sun 2026-11-29 18:22:50 UTC] ; pid=4232 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[Sun 2026-11-29 18:22:50 UTC] ; pid=4232 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[n/a] ; pid=4241 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags= ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[n/a] ; pid=4241 ; code=(null) ; status=0/0 } |
| -ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[Sun 2026-11-29 20:14:05 UTC] ; pid=6846 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[Sun 2026-11-29 20:14:05 UTC] ; pid=6846 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[n/a] ; pid=6854 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags= ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[n/a] ; pid=6854 ; code=(null) ; status=0/0 } |
| +ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-demo-builds.slice |
| -ControlGroup=/carlos.slice/carlos-demo.slice/carlos-demo-builds.slice/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -ControlGroupId=5522 |
| -MemoryCurrent=10616832 |
| -MemoryPeak=11022336 |
| +ControlGroup=/carlos.slice/carlos-demo.slice/carlos-demo-builds.slice/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +ControlGroupId=8009 |
| +MemoryCurrent=8441856 |
| +MemoryPeak=8724480 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=985949793 |
| +MemoryAvailable=988124769 |
| EffectiveMemoryMax=1107296256 |
| EffectiveMemoryHigh=996566625 |
| -CPUUsageNSec=120048000 |
| +CPUUsageNSec=111320000 |
| EffectiveCPUs= |
| EffectiveMemoryNodes= |
| -TasksCurrent=10 |
| +TasksCurrent=9 |
| EffectiveTasksMax=192 |
| IPIngressBytes=[no data] |
| IPIngressPackets=[no data] |
| @@ -128,7 +128,7 @@ TasksAccounting=yes |
| TasksMax=192 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -243,7 +243,7 @@ ImportCredential= |
| ImportCredentialEx=[unprintable] |
| SupplementaryGroups= |
| PAMName= |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| ReadOnlyPaths= |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| ExecPaths= |
| @@ -275,9 +275,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -299,8 +299,8 @@ RestrictRealtime=yes |
| RestrictSUIDSGID=no |
| RestrictNamespaces=no |
| RestrictFileSystems=~ |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:rbind |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:rbind |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:rbind |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:rbind |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| MountAPIVFS=no |
| BindLogSockets=no |
| @@ -321,13 +321,13 @@ FinalKillSignal=9 |
| SendSIGKILL=yes |
| SendSIGHUP=no |
| WatchdogSignal=6 |
| -Id=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Names=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| +Id=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Names=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| Following= |
| -Requires=sysinit.target carlos-demo-builds.slice |
| +Requires=carlos-demo-builds.slice sysinit.target |
| Requisite= |
| Wants=-.mount tmp.mount |
| -BindsTo=carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" |
| +BindsTo=carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" |
| PartOf= |
| Upholds= |
| RequiredBy= |
| @@ -339,7 +339,7 @@ ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| Before=shutdown.target |
| -After="var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" basic.target -.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" carlos-demo-builds.slice systemd-tmpfiles-setup.service systemd-journald.socket tmp.mount carlos-instance-control.service sysinit.target |
| +After="var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" -.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" carlos-demo-builds.slice carlos-instance-control.service systemd-journald.socket tmp.mount basic.target systemd-tmpfiles-setup.service sysinit.target |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -353,7 +353,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor offline demo build |
| AccessSELinuxContext= |
| @@ -363,15 +363,15 @@ FreezerState=running |
| SubState=running |
| FragmentPath=/run/systemd/system/carlos-demo-build-gvisor@.service |
| SourcePath= |
| -DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -StateChangeTimestampMonotonic=93723173 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -InactiveExitTimestampMonotonic=93523688 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ActiveEnterTimestampMonotonic=93723173 |
| +StateChangeTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +StateChangeTimestampMonotonic=145277438 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +InactiveExitTimestampMonotonic=145084578 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ActiveEnterTimestampMonotonic=145277438 |
| ActiveExitTimestamp= |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestamp= |
| @@ -401,10 +401,10 @@ JobTimeoutAction=none |
| JobTimeoutRebootArgument= |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ConditionTimestampMonotonic=93522202 |
| -AssertTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -AssertTimestampMonotonic=93522203 |
| +ConditionTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ConditionTimestampMonotonic=145082965 |
| +AssertTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +AssertTimestampMonotonic=145082966 |
| Conditions=[unprintable] |
| Asserts=[unprintable] |
| LoadError= |
| @@ -418,7 +418,7 @@ FailureActionExitStatus=[not set] |
| SuccessAction=none |
| SuccessActionExitStatus=[not set] |
| RebootArgument= |
| -InvocationID=bd681af147d346cea1cfbc00c81a087c |
| +InvocationID=784155a71fb3465aa2e742b35ff51845 |
| CollectMode=inactive |
| Refs= |
| ActivationDetails=[unprintable] |
diff --git a/internal/host/testdata/gvisor-systemd257/build-active.cat b/internal/host/testdata/gvisor-systemd257/build-active.cat| index 1f3e1eb57..4b0552c6c 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-active.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/build-active.cat |
| @@ -38,29 +38,31 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| -# /run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +# /run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| [Unit] |
| -BindsTo=var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount carlos-instance-control.service |
| -After=var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount carlos-instance-control.service |
| +BindsTo=var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work-cache.mount carlos-instance-control.service |
| +After=var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work-cache.mount carlos-instance-control.service |
| [Service] |
| StandardOutput=journal |
| StandardError=journal |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00 /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /opt/carlos/demo-toolchain /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00 /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /opt/carlos/demo-toolchain /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| ExecCondition= |
| ExecStartPre= |
| -ExecStartPre=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStartPre=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
| ExecStart= |
| -ExecStart=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStart=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
| ExecStartPost= |
| ExecReload= |
| ExecStop= |
| ExecStopPost= |
| -ExecStopPost=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStopPost=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
diff --git a/internal/host/testdata/gvisor-systemd257/build-active.show b/internal/host/testdata/gvisor-systemd257/build-active.show| index 0ecd9ce4f..a4facf63d 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-active.show |
| +++ b/internal/host/testdata/gvisor-systemd257/build-active.show |
| @@ -19,7 +19,7 @@ WatchdogTimestampMonotonic=0 |
| RootDirectoryStartOnly=no |
| RemainAfterExit=yes |
| GuessMainPID=yes |
| -MainPID=4241 |
| +MainPID=6854 |
| ControlPID=0 |
| FileDescriptorStoreMax=0 |
| NFileDescriptorStore=0 |
| @@ -33,35 +33,35 @@ UID=0 |
| GID=0 |
| NRestarts=0 |
| OOMPolicy=kill |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ExecMainStartTimestampMonotonic=93622700 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ExecMainStartTimestampMonotonic=145160872 |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ExecMainHandoffTimestampMonotonic=93721900 |
| -ExecMainPID=4241 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ExecMainHandoffTimestampMonotonic=145273220 |
| +ExecMainPID=6854 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[Sun 2026-11-29 18:22:50 UTC] ; pid=4232 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[Sun 2026-11-29 18:22:50 UTC] ; pid=4232 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[n/a] ; pid=4241 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags= ; start_time=[Sun 2026-11-29 18:22:50 UTC] ; stop_time=[n/a] ; pid=4241 ; code=(null) ; status=0/0 } |
| -ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[Sun 2026-11-29 20:14:05 UTC] ; pid=6846 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[Sun 2026-11-29 20:14:05 UTC] ; pid=6846 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[n/a] ; pid=6854 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags= ; start_time=[Sun 2026-11-29 20:14:05 UTC] ; stop_time=[n/a] ; pid=6854 ; code=(null) ; status=0/0 } |
| +ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-demo-builds.slice |
| -ControlGroup=/carlos.slice/carlos-demo.slice/carlos-demo-builds.slice/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -ControlGroupId=5522 |
| -MemoryCurrent=10616832 |
| -MemoryPeak=11022336 |
| +ControlGroup=/carlos.slice/carlos-demo.slice/carlos-demo-builds.slice/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +ControlGroupId=8009 |
| +MemoryCurrent=5357568 |
| +MemoryPeak=5730304 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=985949793 |
| +MemoryAvailable=991209057 |
| EffectiveMemoryMax=1107296256 |
| EffectiveMemoryHigh=996566625 |
| -CPUUsageNSec=120048000 |
| -TasksCurrent=10 |
| +CPUUsageNSec=107602000 |
| +TasksCurrent=6 |
| EffectiveTasksMax=192 |
| IPIngressBytes=[no data] |
| IPIngressPackets=[no data] |
| @@ -106,7 +106,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=192 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -181,7 +181,7 @@ Group=root |
| DynamicUser=no |
| SetLoginEnvironment=yes |
| RemoveIPC=no |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| PrivateTmp=yes |
| PrivateTmpEx=connected |
| @@ -204,8 +204,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -218,8 +219,8 @@ MemoryDenyWriteExecute=no |
| RestrictRealtime=yes |
| RestrictSUIDSGID=no |
| RestrictNamespaces=no |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:rbind |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:rbind |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:rbind |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:rbind |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| MountAPIVFS=no |
| BindLogSockets=no |
| @@ -238,30 +239,30 @@ FinalKillSignal=9 |
| SendSIGKILL=yes |
| SendSIGHUP=no |
| WatchdogSignal=6 |
| -Id=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Names=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Requires=sysinit.target carlos-demo-builds.slice |
| +Id=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Names=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Requires=carlos-demo-builds.slice sysinit.target |
| Wants=-.mount tmp.mount |
| -BindsTo=carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" |
| +BindsTo=carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" |
| Conflicts=shutdown.target |
| Before=shutdown.target |
| -After="var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" basic.target -.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" carlos-demo-builds.slice systemd-tmpfiles-setup.service systemd-journald.socket tmp.mount carlos-instance-control.service sysinit.target |
| -WantsMountsFor=/tmp /var/tmp |
| +After="var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" -.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" carlos-demo-builds.slice carlos-instance-control.service systemd-journald.socket tmp.mount basic.target systemd-tmpfiles-setup.service sysinit.target |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor offline demo build |
| LoadState=loaded |
| ActiveState=active |
| FreezerState=running |
| SubState=running |
| FragmentPath=/run/systemd/system/carlos-demo-build-gvisor@.service |
| -DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -StateChangeTimestampMonotonic=93723173 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -InactiveExitTimestampMonotonic=93523688 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ActiveEnterTimestampMonotonic=93723173 |
| +StateChangeTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +StateChangeTimestampMonotonic=145277438 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +InactiveExitTimestampMonotonic=145084578 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ActiveEnterTimestampMonotonic=145277438 |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestampMonotonic=0 |
| CanStart=yes |
| @@ -285,10 +286,10 @@ JobRunningTimeoutUSec=infinity |
| JobTimeoutAction=none |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -ConditionTimestampMonotonic=93522202 |
| -AssertTimestamp=Sun 2026-11-29 18:22:50 UTC |
| -AssertTimestampMonotonic=93522203 |
| +ConditionTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +ConditionTimestampMonotonic=145082965 |
| +AssertTimestamp=Sun 2026-11-29 20:14:05 UTC |
| +AssertTimestampMonotonic=145082966 |
| Transient=no |
| Perpetual=no |
| StartLimitIntervalUSec=10s |
| @@ -296,6 +297,6 @@ StartLimitBurst=5 |
| StartLimitAction=none |
| FailureAction=none |
| SuccessAction=none |
| -InvocationID=bd681af147d346cea1cfbc00c81a087c |
| +InvocationID=784155a71fb3465aa2e742b35ff51845 |
| CollectMode=inactive |
| DebugInvocation=no |
diff --git a/internal/host/testdata/gvisor-systemd257/build-before.all.show b/internal/host/testdata/gvisor-systemd257/build-before.all.show| index e04f5aad6..ccbe1b821 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-before.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/build-before.all.show |
| @@ -44,7 +44,7 @@ UID=[not set] |
| GID=[not set] |
| NRestarts=0 |
| OOMPolicy=kill |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| ExtraFileDescriptorNames= |
| ReloadSignal=1 |
| ExecMainStartTimestamp= |
| @@ -56,12 +56,12 @@ ExecMainHandoffTimestampMonotonic=0 |
| ExecMainPID=0 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-demo-builds.slice |
| ControlGroup= |
| ControlGroupId=0 |
| @@ -70,7 +70,7 @@ MemoryPeak=[not set] |
| MemorySwapCurrent=[not set] |
| MemorySwapPeak=[not set] |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=1077841920 |
| +MemoryAvailable=1115234304 |
| EffectiveMemoryMax=1107296256 |
| EffectiveMemoryHigh=996566625 |
| CPUUsageNSec=[not set] |
| @@ -128,7 +128,7 @@ TasksAccounting=yes |
| TasksMax=192 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -243,7 +243,7 @@ ImportCredential= |
| ImportCredentialEx=[unprintable] |
| SupplementaryGroups= |
| PAMName= |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| ReadOnlyPaths= |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| ExecPaths= |
| @@ -275,9 +275,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -299,8 +299,8 @@ RestrictRealtime=yes |
| RestrictSUIDSGID=no |
| RestrictNamespaces=no |
| RestrictFileSystems=~ |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:rbind |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:rbind |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:rbind |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:rbind |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| MountAPIVFS=no |
| BindLogSockets=no |
| @@ -321,13 +321,13 @@ FinalKillSignal=9 |
| SendSIGKILL=yes |
| SendSIGHUP=no |
| WatchdogSignal=6 |
| -Id=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Names=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| +Id=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Names=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| Following= |
| -Requires=sysinit.target carlos-demo-builds.slice |
| +Requires=carlos-demo-builds.slice sysinit.target |
| Requisite= |
| Wants=-.mount tmp.mount |
| -BindsTo="var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" |
| +BindsTo="var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" carlos-instance-control.service |
| PartOf= |
| Upholds= |
| RequiredBy= |
| @@ -339,7 +339,7 @@ ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| Before=shutdown.target |
| -After=systemd-journald.socket basic.target carlos-demo-builds.slice carlos-instance-control.service sysinit.target tmp.mount systemd-tmpfiles-setup.service "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" -.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" |
| +After=systemd-journald.socket carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" basic.target carlos-demo-builds.slice systemd-tmpfiles-setup.service tmp.mount "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" sysinit.target -.mount |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -353,7 +353,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor offline demo build |
| AccessSELinuxContext= |
| @@ -363,7 +363,7 @@ FreezerState=running |
| SubState=dead |
| FragmentPath=/run/systemd/system/carlos-demo-build-gvisor@.service |
| SourcePath= |
| -DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| StateChangeTimestamp= |
diff --git a/internal/host/testdata/gvisor-systemd257/build-before.cat b/internal/host/testdata/gvisor-systemd257/build-before.cat| index 1f3e1eb57..4b0552c6c 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-before.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/build-before.cat |
| @@ -38,29 +38,31 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| -# /run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +# /run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| [Unit] |
| -BindsTo=var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount carlos-instance-control.service |
| -After=var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-PaBM\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount carlos-instance-control.service |
| +BindsTo=var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work-cache.mount carlos-instance-control.service |
| +After=var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work.mount var-lib-carlos\x2ddemo\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\x2d5fO4HUa0jxqa5v4-1-work-cache.mount carlos-instance-control.service |
| [Service] |
| StandardOutput=journal |
| StandardError=journal |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00 /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /opt/carlos/demo-toolchain /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00 /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /opt/carlos/demo-toolchain /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| ExecCondition= |
| ExecStartPre= |
| -ExecStartPre=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStartPre=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
| ExecStart= |
| -ExecStart=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStart=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
| ExecStartPost= |
| ExecReload= |
| ExecStop= |
| ExecStopPost= |
| -ExecStopPost=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 |
| +ExecStopPost=-/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 |
diff --git a/internal/host/testdata/gvisor-systemd257/build-before.show b/internal/host/testdata/gvisor-systemd257/build-before.show| index d70fb992e..d5861b5d3 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/build-before.show |
| +++ b/internal/host/testdata/gvisor-systemd257/build-before.show |
| @@ -33,7 +33,7 @@ UID=[not set] |
| GID=[not set] |
| NRestarts=0 |
| OOMPolicy=kill |
| -OpenFile=/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/diagnostics::append |
| +OpenFile=/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/diagnostics::append |
| ReloadSignal=1 |
| ExecMainStartTimestampMonotonic=0 |
| ExecMainExitTimestampMonotonic=0 |
| @@ -41,12 +41,12 @@ ExecMainHandoffTimestampMonotonic=0 |
| ExecMainPID=0 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| -ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 delete -force build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| +ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 delete -force build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-demo-builds.slice |
| ControlGroupId=0 |
| MemoryCurrent=[not set] |
| @@ -54,7 +54,7 @@ MemoryPeak=[not set] |
| MemorySwapCurrent=[not set] |
| MemorySwapPeak=[not set] |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=1078120448 |
| +MemoryAvailable=1115512832 |
| EffectiveMemoryMax=1107296256 |
| EffectiveMemoryHigh=996566625 |
| CPUUsageNSec=[not set] |
| @@ -103,7 +103,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=192 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -178,7 +178,7 @@ Group=root |
| DynamicUser=no |
| SetLoginEnvironment=yes |
| RemoveIPC=no |
| -ReadWritePaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1 /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache |
| +ReadWritePaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1 /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
| PrivateTmp=yes |
| PrivateTmpEx=connected |
| @@ -201,8 +201,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -215,8 +216,8 @@ MemoryDenyWriteExecute=no |
| RestrictRealtime=yes |
| RestrictSUIDSGID=no |
| RestrictNamespaces=no |
| -BindPaths=/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-runsc/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/out:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/tmp:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/home:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/cache:rbind |
| -BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/run/carlos-control/oci/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:/var/lib/carlos/oci-rootfs/build-3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:/var/lib/carlos-demo-builds/PaBM-nl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI/1/work/src:rbind |
| +BindPaths=/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-runsc/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/out:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/tmp:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/home:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/cache:rbind |
| +BindReadOnlyPaths=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00:rbind /run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/run/carlos-control/oci/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:/var/lib/carlos/oci-rootfs/build-d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1:rbind /opt/carlos/demo-toolchain:/opt/carlos/demo-toolchain:rbind /var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:/var/lib/carlos-demo-builds/1btqMJ6HLQ5x8eqEi11XOx3hrF_-5fO4HUa0jxqa5v4/1/work/src:rbind |
| TemporaryFileSystem=/data:ro /opt:ro /run:ro /var:ro |
| MountAPIVFS=no |
| BindLogSockets=no |
| @@ -235,22 +236,22 @@ FinalKillSignal=9 |
| SendSIGKILL=yes |
| SendSIGHUP=no |
| WatchdogSignal=6 |
| -Id=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Names=carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service |
| -Requires=sysinit.target carlos-demo-builds.slice |
| +Id=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Names=carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service |
| +Requires=carlos-demo-builds.slice sysinit.target |
| Wants=-.mount tmp.mount |
| -BindsTo="var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" carlos-instance-control.service |
| +BindsTo=carlos-instance-control.service "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" |
| Conflicts=shutdown.target |
| Before=shutdown.target |
| -After="var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work-cache.mount" systemd-journald.socket carlos-demo-builds.slice systemd-tmpfiles-setup.service "var-lib-carlos\\x2ddemo\\x2dbuilds-PaBM\\x2dnl5p3dwX6qg16rSU4LygcCRYLrgcXCU8dFEnhI-1-work.mount" sysinit.target basic.target carlos-instance-control.service tmp.mount -.mount |
| -WantsMountsFor=/tmp /var/tmp |
| +After=carlos-instance-control.service tmp.mount systemd-journald.socket sysinit.target "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work-cache.mount" "var-lib-carlos\\x2ddemo\\x2dbuilds-1btqMJ6HLQ5x8eqEi11XOx3hrF_\\x2d5fO4HUa0jxqa5v4-1-work.mount" basic.target systemd-tmpfiles-setup.service carlos-demo-builds.slice -.mount |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor offline demo build |
| LoadState=loaded |
| ActiveState=inactive |
| FreezerState=running |
| SubState=dead |
| FragmentPath=/run/systemd/system/carlos-demo-build-gvisor@.service |
| -DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@3da04cfa7979a777705faaa0d7aad25382f281c09160bae0717094f1d1449e12_1.service.d/50-job.conf |
| +DropInPaths=/run/systemd/system/carlos-demo-build-gvisor@d5bb6a309e872d0e71f1ea848b5d573b1de1ac5ffee5f3b81d46b48f1a9ae6fe_1.service.d/50-job.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| StateChangeTimestampMonotonic=0 |
diff --git a/internal/host/testdata/gvisor-systemd257/capture.json b/internal/host/testdata/gvisor-systemd257/capture.json| index 81c04f22e..d41d8f369 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/capture.json |
| +++ b/internal/host/testdata/gvisor-systemd257/capture.json |
| @@ -1,6 +1,6 @@ |
| { |
| - "run_id": "20261129T181930-8ec904", |
| - "instance_id": "i-0d7b7e377a75515e7", |
| + "run_id": "20261129T201018-5ef7fa", |
| + "instance_id": "i-06e9bae0414ea2d76", |
| "architecture": "linux-arm64", |
| "complete": true, |
| "captured_kinds": [ |
| @@ -31,76 +31,76 @@ |
| }, |
| "files": { |
| "build-active.all.show": { |
| - "bytes": 16333, |
| - "sha256": "a4dfa58536f5534c6c1b756aaa9f4f99b9b9cd8b899d21d687330ae0d4234f6b" |
| + "bytes": 16996, |
| + "sha256": "b031544b03004cec036ffc9fc0ed969c8793b76e6b3c235b2256c0b1dfc38734" |
| }, |
| "build-active.cat": { |
| - "bytes": 4292, |
| - "sha256": "10348cd8f205dc7df22cf3d6b558c89a3b868f63aff5807c073d31d8e7e09052" |
| + "bytes": 4541, |
| + "sha256": "c1d6f112ef12c9a991bbd174c904454d2f7321624395ac2c481dacf657a041fc" |
| }, |
| "build-active.show": { |
| - "bytes": 14102, |
| - "sha256": "dac8d0c66576146b41c31c32307bbd35fc20682af70d330af0fff2112812ab9d" |
| + "bytes": 14784, |
| + "sha256": "2b228dd646a580d30197574258e679f2912e0fe74083c55c2ae1d0f7bd5df426" |
| }, |
| "build-before.all.show": { |
| - "bytes": 15792, |
| - "sha256": "f38891634d0c7213c03a70178da2554447386e39697669f7bf71fe05fe7f58b8" |
| + "bytes": 16451, |
| + "sha256": "f2fdcf822193cff64dab46f22212299d370ffabbd75d4c6c67e546db2967e11d" |
| }, |
| "build-before.cat": { |
| - "bytes": 4292, |
| - "sha256": "10348cd8f205dc7df22cf3d6b558c89a3b868f63aff5807c073d31d8e7e09052" |
| + "bytes": 4541, |
| + "sha256": "c1d6f112ef12c9a991bbd174c904454d2f7321624395ac2c481dacf657a041fc" |
| }, |
| "build-before.show": { |
| - "bytes": 13379, |
| - "sha256": "e8e2696fe6413eda6bf8f3b209fbd43f413db77d872eced8540dd7d91f7c50cd" |
| + "bytes": 14057, |
| + "sha256": "622da679c24e09be3f8cb611a4a2741f81bfd65e13005624f9dd4d4403d48320" |
| }, |
| "probe-active.all.show": { |
| - "bytes": 13835, |
| - "sha256": "ffd7e677d3ee213ecba89fbe4822bf8a848a3c73af0cb276d2d6550c4bf8c044" |
| + "bytes": 14501, |
| + "sha256": "42979b3e1d79b2a94deebaa0fd5fe906d83bdd90725017e1c0b3adb94f724fee" |
| }, |
| "probe-active.cat": { |
| - "bytes": 2658, |
| - "sha256": "db9853fdffe97c11523bc95e47cf034c528cb8da12536382d1dab443e0ee3b61" |
| + "bytes": 2907, |
| + "sha256": "ff020e76414ad502914cbfe451b4466d198574309affea60b28533b3bdc485d8" |
| }, |
| "probe-active.show": { |
| - "bytes": 11595, |
| - "sha256": "516bfdef313b1b4b5e78591cd5187f3a6d4517a4737ff0df69796d85f5c59268" |
| + "bytes": 12280, |
| + "sha256": "e9cf06a5572020c4b611f0db7ff82bdac12fe3fa34d5918fed515cd4195e802f" |
| }, |
| "probe-before.all.show": { |
| - "bytes": 13381, |
| - "sha256": "bb39e0addfa29c1ddac7b5a17fe21323655a4547a91781809147d3e95dc0e8c3" |
| + "bytes": 14040, |
| + "sha256": "5777ac593c701f7f5c23f5b830a2b0d0a75a8e633d5ad15bee78fab76f9e3b37" |
| }, |
| "probe-before.cat": { |
| - "bytes": 2658, |
| - "sha256": "db9853fdffe97c11523bc95e47cf034c528cb8da12536382d1dab443e0ee3b61" |
| + "bytes": 2907, |
| + "sha256": "ff020e76414ad502914cbfe451b4466d198574309affea60b28533b3bdc485d8" |
| }, |
| "probe-before.show": { |
| - "bytes": 10959, |
| - "sha256": "fab12e4487a0303f0cc2e07437031b60aae164fecf86cd8fbd43dada37eff6fd" |
| + "bytes": 11637, |
| + "sha256": "43fa65002ffd65fddef7467dab694a8de1158f77633318bb58d703cac8f62c4a" |
| }, |
| "run-active.all.show": { |
| - "bytes": 15673, |
| - "sha256": "36b275313a28ec640d00768a857fa8b1bd30fe573a81cb6e2f188bf86220b49b" |
| + "bytes": 16336, |
| + "sha256": "0d775ddd83b7a9de988886aea2decef3568c1d65bd88a62b3b3739306e4da18e" |
| }, |
| "run-active.cat": { |
| - "bytes": 3451, |
| - "sha256": "46ed75ac9931e26702843bc975aa6962ae6e660b55928b159022f41691c5cdb4" |
| + "bytes": 3700, |
| + "sha256": "585aed69c4ea743377adeab04fc94e3ad3e4a2d8add331177e966f139bc2d09e" |
| }, |
| "run-active.show": { |
| - "bytes": 13461, |
| - "sha256": "8cb05ce1bb14c58ab19571af51b81f85aa7655fe1c517417ce56b576dde13bad" |
| + "bytes": 14142, |
| + "sha256": "a1adc93c91f280c579a1ac377a94cb568bf2842ff6c267f022db92cc86067aa6" |
| }, |
| "run-before.all.show": { |
| - "bytes": 15129, |
| - "sha256": "1e602924fc183b5be055f6032e5faae34c8282327fbab1488eb3b83cd0940532" |
| + "bytes": 15788, |
| + "sha256": "f98d7f849a5321ffd1aed750a1f3142d0edf71399ad657d7906906461f5a2973" |
| }, |
| "run-before.cat": { |
| - "bytes": 3451, |
| - "sha256": "46ed75ac9931e26702843bc975aa6962ae6e660b55928b159022f41691c5cdb4" |
| + "bytes": 3700, |
| + "sha256": "585aed69c4ea743377adeab04fc94e3ad3e4a2d8add331177e966f139bc2d09e" |
| }, |
| "run-before.show": { |
| - "bytes": 12735, |
| - "sha256": "2eac6c882284af29127a6091160ad883cef6d9c92c07e1943306926ab2085995" |
| + "bytes": 13413, |
| + "sha256": "1ad7d1e73ffca141c529afdb43ca6ddba57fc0db928515b011ee4aa1375423dc" |
| } |
| } |
| } |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-active.all.show b/internal/host/testdata/gvisor-systemd257/probe-active.all.show| index f624b079f..d17f98044 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-active.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-active.all.show |
| @@ -24,7 +24,7 @@ GuessMainPID=yes |
| RestartPreventExitStatus= |
| RestartForceExitStatus= |
| SuccessExitStatus= |
| -MainPID=3510 |
| +MainPID=6123 |
| ControlPID=0 |
| BusName= |
| FileDescriptorStoreMax=0 |
| @@ -46,35 +46,35 @@ NRestarts=0 |
| OOMPolicy=kill |
| ExtraFileDescriptorNames= |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ExecMainStartTimestampMonotonic=78651730 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ExecMainStartTimestampMonotonic=130125928 |
| ExecMainExitTimestamp= |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ExecMainHandoffTimestampMonotonic=78706873 |
| -ExecMainPID=3510 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ExecMainHandoffTimestampMonotonic=130186873 |
| +ExecMainPID=6123 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[Sun 2026-11-29 18:22:35 UTC] ; pid=3505 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[Sun 2026-11-29 18:22:35 UTC] ; pid=3505 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[n/a] ; pid=3510 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; flags= ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[n/a] ; pid=3510 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[Sun 2026-11-29 20:13:50 UTC] ; pid=6117 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[Sun 2026-11-29 20:13:50 UTC] ; pid=6117 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[n/a] ; pid=6123 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; flags= ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[n/a] ; pid=6123 ; code=(null) ; status=0/0 } |
| ExecStop={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe kill probe TERM ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe kill probe TERM ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-instances.slice |
| ControlGroup=/carlos.slice/carlos-instances.slice/carlos-instance-gvisor-probe.service |
| -ControlGroupId=4470 |
| -MemoryCurrent=4812800 |
| -MemoryPeak=5173248 |
| +ControlGroupId=6957 |
| +MemoryCurrent=4870144 |
| +MemoryPeak=5185536 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=266978092 |
| +MemoryAvailable=266920748 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| -CPUUsageNSec=99179000 |
| +CPUUsageNSec=98745000 |
| EffectiveCPUs= |
| EffectiveMemoryNodes= |
| TasksCurrent=4 |
| @@ -129,7 +129,7 @@ TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -276,9 +276,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -340,7 +340,7 @@ ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| Before=shutdown.target |
| -After=run-carlos-instances.mount systemd-tmpfiles-setup.service basic.target -.mount sysinit.target data-instances.mount tmp.mount systemd-journald.socket carlos-instances.slice |
| +After=data-instances.mount carlos-instances.slice tmp.mount systemd-journald.socket sysinit.target -.mount basic.target systemd-tmpfiles-setup.service run-carlos-instances.mount |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -354,7 +354,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor instance probe |
| AccessSELinuxContext= |
| @@ -367,12 +367,12 @@ SourcePath= |
| DropInPaths=/run/systemd/system/carlos-instance-gvisor-probe.service.d/50-carlos-gvisor.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -StateChangeTimestampMonotonic=78707764 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -InactiveExitTimestampMonotonic=78566396 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ActiveEnterTimestampMonotonic=78707764 |
| +StateChangeTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +StateChangeTimestampMonotonic=130187639 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +InactiveExitTimestampMonotonic=130034296 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ActiveEnterTimestampMonotonic=130187639 |
| ActiveExitTimestamp= |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestamp= |
| @@ -402,10 +402,10 @@ JobTimeoutAction=none |
| JobTimeoutRebootArgument= |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ConditionTimestampMonotonic=78543734 |
| -AssertTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -AssertTimestampMonotonic=78543736 |
| +ConditionTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ConditionTimestampMonotonic=130009947 |
| +AssertTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +AssertTimestampMonotonic=130009950 |
| Conditions=[unprintable] |
| Asserts=[unprintable] |
| LoadError= |
| @@ -419,7 +419,7 @@ FailureActionExitStatus=[not set] |
| SuccessAction=none |
| SuccessActionExitStatus=[not set] |
| RebootArgument= |
| -InvocationID=29efca7dde614dea8b9f5b22a3bdd86d |
| +InvocationID=b12815a4512d4fa0bf24705f5b51e199 |
| CollectMode=inactive |
| Refs= |
| ActivationDetails=[unprintable] |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-active.cat b/internal/host/testdata/gvisor-systemd257/probe-active.cat| index 2af9586ee..d828746f6 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-active.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-active.cat |
| @@ -37,6 +37,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-active.show b/internal/host/testdata/gvisor-systemd257/probe-active.show| index dede7ed86..c75ddfbbd 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-active.show |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-active.show |
| @@ -19,7 +19,7 @@ WatchdogTimestampMonotonic=0 |
| RootDirectoryStartOnly=no |
| RemainAfterExit=no |
| GuessMainPID=yes |
| -MainPID=3510 |
| +MainPID=6123 |
| ControlPID=0 |
| FileDescriptorStoreMax=0 |
| NFileDescriptorStore=0 |
| @@ -34,34 +34,34 @@ GID=0 |
| NRestarts=0 |
| OOMPolicy=kill |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ExecMainStartTimestampMonotonic=78651730 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ExecMainStartTimestampMonotonic=130125928 |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ExecMainHandoffTimestampMonotonic=78706873 |
| -ExecMainPID=3510 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ExecMainHandoffTimestampMonotonic=130186873 |
| +ExecMainPID=6123 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[Sun 2026-11-29 18:22:35 UTC] ; pid=3505 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[Sun 2026-11-29 18:22:35 UTC] ; pid=3505 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[n/a] ; pid=3510 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; flags= ; start_time=[Sun 2026-11-29 18:22:35 UTC] ; stop_time=[n/a] ; pid=3510 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[Sun 2026-11-29 20:13:50 UTC] ; pid=6117 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[Sun 2026-11-29 20:13:50 UTC] ; pid=6117 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[n/a] ; pid=6123 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --bundle /run/carlos-control/oci/probe probe ; flags= ; start_time=[Sun 2026-11-29 20:13:50 UTC] ; stop_time=[n/a] ; pid=6123 ; code=(null) ; status=0/0 } |
| ExecStop={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe kill probe TERM ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe kill probe TERM ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPost={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/probe delete -force probe ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-instances.slice |
| ControlGroup=/carlos.slice/carlos-instances.slice/carlos-instance-gvisor-probe.service |
| -ControlGroupId=4470 |
| -MemoryCurrent=4935680 |
| -MemoryPeak=5173248 |
| +ControlGroupId=6957 |
| +MemoryCurrent=4993024 |
| +MemoryPeak=5185536 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=266855212 |
| +MemoryAvailable=266797868 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| -CPUUsageNSec=99179000 |
| +CPUUsageNSec=98745000 |
| TasksCurrent=4 |
| EffectiveTasksMax=320 |
| IPIngressBytes=[no data] |
| @@ -107,7 +107,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -205,8 +205,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -245,8 +246,8 @@ Requires=sysinit.target data-instances.mount carlos-instances.slice run-carlos-i |
| Wants=tmp.mount -.mount |
| Conflicts=shutdown.target |
| Before=shutdown.target |
| -After=run-carlos-instances.mount systemd-tmpfiles-setup.service basic.target -.mount sysinit.target data-instances.mount tmp.mount systemd-journald.socket carlos-instances.slice |
| -WantsMountsFor=/tmp /var/tmp |
| +After=data-instances.mount carlos-instances.slice tmp.mount systemd-journald.socket sysinit.target -.mount basic.target systemd-tmpfiles-setup.service run-carlos-instances.mount |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor instance probe |
| LoadState=loaded |
| ActiveState=active |
| @@ -256,12 +257,12 @@ FragmentPath=/run/systemd/system/carlos-instance-gvisor-probe.service |
| DropInPaths=/run/systemd/system/carlos-instance-gvisor-probe.service.d/50-carlos-gvisor.conf |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -StateChangeTimestampMonotonic=78707764 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -InactiveExitTimestampMonotonic=78566396 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ActiveEnterTimestampMonotonic=78707764 |
| +StateChangeTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +StateChangeTimestampMonotonic=130187639 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +InactiveExitTimestampMonotonic=130034296 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ActiveEnterTimestampMonotonic=130187639 |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestampMonotonic=0 |
| CanStart=yes |
| @@ -285,10 +286,10 @@ JobRunningTimeoutUSec=infinity |
| JobTimeoutAction=none |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -ConditionTimestampMonotonic=78543734 |
| -AssertTimestamp=Sun 2026-11-29 18:22:35 UTC |
| -AssertTimestampMonotonic=78543736 |
| +ConditionTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +ConditionTimestampMonotonic=130009947 |
| +AssertTimestamp=Sun 2026-11-29 20:13:50 UTC |
| +AssertTimestampMonotonic=130009950 |
| Transient=no |
| Perpetual=no |
| StartLimitIntervalUSec=10s |
| @@ -296,6 +297,6 @@ StartLimitBurst=5 |
| StartLimitAction=none |
| FailureAction=none |
| SuccessAction=none |
| -InvocationID=29efca7dde614dea8b9f5b22a3bdd86d |
| +InvocationID=b12815a4512d4fa0bf24705f5b51e199 |
| CollectMode=inactive |
| DebugInvocation=no |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-before.all.show b/internal/host/testdata/gvisor-systemd257/probe-before.all.show| index bf381ddb2..0c74ff060 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-before.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-before.all.show |
| @@ -71,7 +71,7 @@ MemoryPeak=[not set] |
| MemorySwapCurrent=[not set] |
| MemorySwapPeak=[not set] |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=1166495744 |
| +MemoryAvailable=1196642304 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| CPUUsageNSec=[not set] |
| @@ -129,7 +129,7 @@ TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -276,9 +276,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -325,7 +325,7 @@ WatchdogSignal=6 |
| Id=carlos-instance-gvisor-probe.service |
| Names=carlos-instance-gvisor-probe.service |
| Following= |
| -Requires=run-carlos-instances.mount sysinit.target data-instances.mount carlos-instances.slice |
| +Requires=sysinit.target run-carlos-instances.mount carlos-instances.slice data-instances.mount |
| Requisite= |
| Wants=tmp.mount -.mount |
| BindsTo= |
| @@ -340,7 +340,7 @@ ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| Before=shutdown.target |
| -After=basic.target run-carlos-instances.mount -.mount systemd-journald.socket sysinit.target systemd-tmpfiles-setup.service data-instances.mount carlos-instances.slice tmp.mount |
| +After=run-carlos-instances.mount -.mount carlos-instances.slice tmp.mount data-instances.mount systemd-tmpfiles-setup.service basic.target systemd-journald.socket sysinit.target |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -354,7 +354,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor instance probe |
| AccessSELinuxContext= |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-before.cat b/internal/host/testdata/gvisor-systemd257/probe-before.cat| index 2af9586ee..d828746f6 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-before.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-before.cat |
| @@ -37,6 +37,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/testdata/gvisor-systemd257/probe-before.show b/internal/host/testdata/gvisor-systemd257/probe-before.show| index e5bd73ed3..89a8631c4 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/probe-before.show |
| +++ b/internal/host/testdata/gvisor-systemd257/probe-before.show |
| @@ -55,7 +55,7 @@ MemoryPeak=[not set] |
| MemorySwapCurrent=[not set] |
| MemorySwapPeak=[not set] |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=1166495744 |
| +MemoryAvailable=1196642304 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| CPUUsageNSec=[not set] |
| @@ -104,7 +104,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -202,8 +202,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -238,12 +239,12 @@ SendSIGHUP=no |
| WatchdogSignal=6 |
| Id=carlos-instance-gvisor-probe.service |
| Names=carlos-instance-gvisor-probe.service |
| -Requires=sysinit.target run-carlos-instances.mount data-instances.mount carlos-instances.slice |
| +Requires=carlos-instances.slice run-carlos-instances.mount data-instances.mount sysinit.target |
| Wants=tmp.mount -.mount |
| Conflicts=shutdown.target |
| Before=shutdown.target |
| -After=sysinit.target carlos-instances.slice -.mount systemd-tmpfiles-setup.service basic.target tmp.mount run-carlos-instances.mount data-instances.mount systemd-journald.socket |
| -WantsMountsFor=/tmp /var/tmp |
| +After=sysinit.target systemd-journald.socket data-instances.mount carlos-instances.slice tmp.mount -.mount basic.target run-carlos-instances.mount systemd-tmpfiles-setup.service |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor instance probe |
| LoadState=loaded |
| ActiveState=inactive |
diff --git a/internal/host/testdata/gvisor-systemd257/run-active.all.show b/internal/host/testdata/gvisor-systemd257/run-active.all.show| index 616b4baad..90e35f730 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-active.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/run-active.all.show |
| @@ -24,7 +24,7 @@ GuessMainPID=yes |
| RestartPreventExitStatus= |
| RestartForceExitStatus= |
| SuccessExitStatus=129 130 141 143 |
| -MainPID=3678 |
| +MainPID=6289 |
| ControlPID=0 |
| BusName= |
| FileDescriptorStoreMax=0 |
| @@ -47,19 +47,19 @@ OOMPolicy=kill |
| OpenFile=/run/carlos/logs/bright-otter-42.example.com.run.sock |
| ExtraFileDescriptorNames= |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ExecMainStartTimestampMonotonic=80496851 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ExecMainStartTimestampMonotonic=131998398 |
| ExecMainExitTimestamp= |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ExecMainHandoffTimestampMonotonic=80593222 |
| -ExecMainPID=3678 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ExecMainHandoffTimestampMonotonic=132074622 |
| +ExecMainPID=6289 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[Sun 2026-11-29 18:22:37 UTC] ; pid=3673 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[Sun 2026-11-29 18:22:37 UTC] ; pid=3673 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[n/a] ; pid=3678 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; flags= ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[n/a] ; pid=3678 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:13:51 UTC] ; stop_time=[Sun 2026-11-29 20:13:52 UTC] ; pid=6284 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:13:51 UTC] ; stop_time=[Sun 2026-11-29 20:13:52 UTC] ; pid=6284 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:13:52 UTC] ; stop_time=[n/a] ; pid=6289 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; flags= ; start_time=[Sun 2026-11-29 20:13:52 UTC] ; stop_time=[n/a] ; pid=6289 ; code=(null) ; status=0/0 } |
| ExecStop={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com kill run-bright-otter-42.example.com TERM ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com kill run-bright-otter-42.example.com TERM ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPost={ path=/opt/carlos/carlos ; argv[]=/opt/carlos/carlos instance-exit --sandbox=gvisor run bright-otter-42.example.com ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| @@ -68,19 +68,19 @@ ExecStopPostEx={ path=/opt/carlos/carlos ; argv[]=/opt/carlos/carlos instance-ex |
| ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-instances-bright\x2dotter\x2d42.example.com.slice |
| ControlGroup=/carlos.slice/carlos-instances.slice/carlos-instances-bright\x2dotter\x2d42.example.com.slice/carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| -ControlGroupId=4810 |
| -MemoryCurrent=15794176 |
| -MemoryPeak=16035840 |
| +ControlGroupId=7297 |
| +MemoryCurrent=5459968 |
| +MemoryPeak=5476352 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=255984428 |
| +MemoryAvailable=266318636 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| -CPUUsageNSec=124500000 |
| +CPUUsageNSec=102378000 |
| EffectiveCPUs= |
| EffectiveMemoryNodes= |
| -TasksCurrent=14 |
| +TasksCurrent=6 |
| EffectiveTasksMax=320 |
| IPIngressBytes=[no data] |
| IPIngressPackets=[no data] |
| @@ -132,7 +132,7 @@ TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -279,9 +279,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -328,9 +328,9 @@ WatchdogSignal=6 |
| Id=carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| Names="carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service" |
| Following= |
| -Requires=sysinit.target run-carlos-logs.mount run-carlos-instances.mount data-instances.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" |
| +Requires=run-carlos-instances.mount sysinit.target run-carlos-logs.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" data-instances.mount |
| Requisite= |
| -Wants=-.mount tmp.mount |
| +Wants=tmp.mount -.mount |
| BindsTo=carlos-edge.service |
| PartOf= |
| Upholds= |
| @@ -342,8 +342,8 @@ UpheldBy= |
| ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| -Before=shutdown.target carlos-edge-drain.service |
| -After="carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" data-instances.mount run-carlos-logs.mount sysinit.target tmp.mount systemd-tmpfiles-setup.service -.mount systemd-journald.socket basic.target run-carlos-instances.mount carlos-edge.service |
| +Before=carlos-edge-drain.service shutdown.target |
| +After=carlos-edge.service tmp.mount systemd-tmpfiles-setup.service run-carlos-instances.mount data-instances.mount basic.target -.mount systemd-journald.socket sysinit.target "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" run-carlos-logs.mount |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -357,7 +357,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor demo instance bright-otter-42.example.com |
| AccessSELinuxContext= |
| @@ -370,12 +370,12 @@ SourcePath= |
| DropInPaths="/run/systemd/system/carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service.d/50-carlos-gvisor.conf" |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -StateChangeTimestampMonotonic=80594155 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -InactiveExitTimestampMonotonic=80427170 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ActiveEnterTimestampMonotonic=80594155 |
| +StateChangeTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +StateChangeTimestampMonotonic=132075241 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +InactiveExitTimestampMonotonic=131914955 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ActiveEnterTimestampMonotonic=132075241 |
| ActiveExitTimestamp= |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestamp= |
| @@ -405,10 +405,10 @@ JobTimeoutAction=none |
| JobTimeoutRebootArgument= |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ConditionTimestampMonotonic=80423843 |
| -AssertTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -AssertTimestampMonotonic=80423844 |
| +ConditionTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +ConditionTimestampMonotonic=131911779 |
| +AssertTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +AssertTimestampMonotonic=131911781 |
| Conditions=[unprintable] |
| Asserts=[unprintable] |
| LoadError= |
| @@ -422,7 +422,7 @@ FailureActionExitStatus=[not set] |
| SuccessAction=none |
| SuccessActionExitStatus=[not set] |
| RebootArgument= |
| -InvocationID=f6e57d85e481495a968ea7d743f7d20e |
| +InvocationID=9186d03370f843089af88aee8cd21c31 |
| CollectMode=inactive |
| Refs= |
| ActivationDetails=[unprintable] |
diff --git a/internal/host/testdata/gvisor-systemd257/run-active.cat b/internal/host/testdata/gvisor-systemd257/run-active.cat| index 014882dd5..009e1e73e 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-active.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/run-active.cat |
| @@ -36,6 +36,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/testdata/gvisor-systemd257/run-active.show b/internal/host/testdata/gvisor-systemd257/run-active.show| index 6d7c2da6b..f9bbe13b5 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-active.show |
| +++ b/internal/host/testdata/gvisor-systemd257/run-active.show |
| @@ -20,7 +20,7 @@ RootDirectoryStartOnly=no |
| RemainAfterExit=no |
| GuessMainPID=yes |
| SuccessExitStatus=129 130 141 143 |
| -MainPID=3678 |
| +MainPID=6289 |
| ControlPID=0 |
| FileDescriptorStoreMax=0 |
| NFileDescriptorStore=0 |
| @@ -36,18 +36,18 @@ NRestarts=0 |
| OOMPolicy=kill |
| OpenFile=/run/carlos/logs/bright-otter-42.example.com.run.sock |
| ReloadSignal=1 |
| -ExecMainStartTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ExecMainStartTimestampMonotonic=80496851 |
| +ExecMainStartTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ExecMainStartTimestampMonotonic=131998398 |
| ExecMainExitTimestampMonotonic=0 |
| -ExecMainHandoffTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ExecMainHandoffTimestampMonotonic=80593222 |
| -ExecMainPID=3678 |
| +ExecMainHandoffTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ExecMainHandoffTimestampMonotonic=132074622 |
| +ExecMainPID=6289 |
| ExecMainCode=0 |
| ExecMainStatus=0 |
| -ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; ignore_errors=yes ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[Sun 2026-11-29 18:22:37 UTC] ; pid=3673 ; code=exited ; status=0 } |
| -ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags=ignore-failure ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[Sun 2026-11-29 18:22:37 UTC] ; pid=3673 ; code=exited ; status=0 } |
| -ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; ignore_errors=no ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[n/a] ; pid=3678 ; code=(null) ; status=0/0 } |
| -ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; flags= ; start_time=[Sun 2026-11-29 18:22:37 UTC] ; stop_time=[n/a] ; pid=3678 ; code=(null) ; status=0/0 } |
| +ExecStartPre={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; ignore_errors=yes ; start_time=[Sun 2026-11-29 20:13:51 UTC] ; stop_time=[Sun 2026-11-29 20:13:52 UTC] ; pid=6284 ; code=exited ; status=0 } |
| +ExecStartPreEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags=ignore-failure ; start_time=[Sun 2026-11-29 20:13:51 UTC] ; stop_time=[Sun 2026-11-29 20:13:52 UTC] ; pid=6284 ; code=exited ; status=0 } |
| +ExecStart={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; ignore_errors=no ; start_time=[Sun 2026-11-29 20:13:52 UTC] ; stop_time=[n/a] ; pid=6289 ; code=(null) ; status=0/0 } |
| +ExecStartEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com --ignore-cgroups --network=none --host-uds=create --overlay2=none --platform=systrap --directfs=true run --pass-fd=3:1,3:2 --bundle /run/carlos-control/oci/run-bright-otter-42.example.com run-bright-otter-42.example.com ; flags= ; start_time=[Sun 2026-11-29 20:13:52 UTC] ; stop_time=[n/a] ; pid=6289 ; code=(null) ; status=0/0 } |
| ExecStop={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com kill run-bright-otter-42.example.com TERM ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com kill run-bright-otter-42.example.com TERM ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| ExecStopPost={ path=/opt/carlos/carlos ; argv[]=/opt/carlos/carlos instance-exit --sandbox=gvisor run bright-otter-42.example.com ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| @@ -56,17 +56,17 @@ ExecStopPostEx={ path=/opt/carlos/carlos ; argv[]=/opt/carlos/carlos instance-ex |
| ExecStopPostEx={ path=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc ; argv[]=/opt/carlos/runsc/ef62daddb0405a6f30c3a23aea89d4c9b1f2dfe38a6bf59f8e8caad76bf1ff00/runsc --root=/run/carlos-runsc/run-bright-otter-42.example.com delete -force run-bright-otter-42.example.com ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } |
| Slice=carlos-instances-bright\x2dotter\x2d42.example.com.slice |
| ControlGroup=/carlos.slice/carlos-instances.slice/carlos-instances-bright\x2dotter\x2d42.example.com.slice/carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| -ControlGroupId=4810 |
| -MemoryCurrent=13586432 |
| -MemoryPeak=13799424 |
| +ControlGroupId=7297 |
| +MemoryCurrent=2813952 |
| +MemoryPeak=5214208 |
| MemorySwapCurrent=0 |
| MemorySwapPeak=0 |
| MemoryZSwapCurrent=[not set] |
| -MemoryAvailable=258192172 |
| +MemoryAvailable=268964652 |
| EffectiveMemoryMax=301989888 |
| EffectiveMemoryHigh=271790892 |
| -CPUUsageNSec=114975000 |
| -TasksCurrent=11 |
| +CPUUsageNSec=97629000 |
| +TasksCurrent=4 |
| EffectiveTasksMax=320 |
| IPIngressBytes=[no data] |
| IPIngressPackets=[no data] |
| @@ -111,7 +111,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -209,8 +209,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -245,13 +246,13 @@ SendSIGHUP=no |
| WatchdogSignal=6 |
| Id=carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| Names="carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service" |
| -Requires=sysinit.target run-carlos-logs.mount run-carlos-instances.mount data-instances.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" |
| -Wants=-.mount tmp.mount |
| +Requires=run-carlos-instances.mount sysinit.target run-carlos-logs.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" data-instances.mount |
| +Wants=tmp.mount -.mount |
| BindsTo=carlos-edge.service |
| Conflicts=shutdown.target |
| -Before=shutdown.target carlos-edge-drain.service |
| -After="carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" data-instances.mount run-carlos-logs.mount sysinit.target tmp.mount systemd-tmpfiles-setup.service -.mount systemd-journald.socket basic.target run-carlos-instances.mount carlos-edge.service |
| -WantsMountsFor=/tmp /var/tmp |
| +Before=carlos-edge-drain.service shutdown.target |
| +After=carlos-edge.service tmp.mount systemd-tmpfiles-setup.service run-carlos-instances.mount data-instances.mount basic.target -.mount systemd-journald.socket sysinit.target "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" run-carlos-logs.mount |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor demo instance bright-otter-42.example.com |
| LoadState=loaded |
| ActiveState=active |
| @@ -261,12 +262,12 @@ FragmentPath=/run/systemd/system/carlos-instance-gvisor@.service |
| DropInPaths="/run/systemd/system/carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service.d/50-carlos-gvisor.conf" |
| UnitFileState=static |
| UnitFilePreset=enabled |
| -StateChangeTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -StateChangeTimestampMonotonic=80594155 |
| -InactiveExitTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -InactiveExitTimestampMonotonic=80427170 |
| -ActiveEnterTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ActiveEnterTimestampMonotonic=80594155 |
| +StateChangeTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +StateChangeTimestampMonotonic=132075241 |
| +InactiveExitTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +InactiveExitTimestampMonotonic=131914955 |
| +ActiveEnterTimestamp=Sun 2026-11-29 20:13:52 UTC |
| +ActiveEnterTimestampMonotonic=132075241 |
| ActiveExitTimestampMonotonic=0 |
| InactiveEnterTimestampMonotonic=0 |
| CanStart=yes |
| @@ -290,10 +291,10 @@ JobRunningTimeoutUSec=infinity |
| JobTimeoutAction=none |
| ConditionResult=yes |
| AssertResult=yes |
| -ConditionTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -ConditionTimestampMonotonic=80423843 |
| -AssertTimestamp=Sun 2026-11-29 18:22:37 UTC |
| -AssertTimestampMonotonic=80423844 |
| +ConditionTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +ConditionTimestampMonotonic=131911779 |
| +AssertTimestamp=Sun 2026-11-29 20:13:51 UTC |
| +AssertTimestampMonotonic=131911781 |
| Transient=no |
| Perpetual=no |
| StartLimitIntervalUSec=10s |
| @@ -301,6 +302,6 @@ StartLimitBurst=5 |
| StartLimitAction=none |
| FailureAction=none |
| SuccessAction=none |
| -InvocationID=f6e57d85e481495a968ea7d743f7d20e |
| +InvocationID=9186d03370f843089af88aee8cd21c31 |
| CollectMode=inactive |
| DebugInvocation=no |
diff --git a/internal/host/testdata/gvisor-systemd257/run-before.all.show b/internal/host/testdata/gvisor-systemd257/run-before.all.show| index 35331165d..89578bea8 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-before.all.show |
| +++ b/internal/host/testdata/gvisor-systemd257/run-before.all.show |
| @@ -132,7 +132,7 @@ TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| IPAddressAllow= |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| IPIngressFilterPath= |
| IPEgressFilterPath= |
| DisableControllers= |
| @@ -279,9 +279,9 @@ AppArmorProfile= |
| SmackProcessLabel= |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| -SystemCallFilter=~ |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| SystemCallLog=~ |
| Personality= |
| LockPersonality=yes |
| @@ -328,9 +328,9 @@ WatchdogSignal=6 |
| Id=carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| Names="carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service" |
| Following= |
| -Requires=run-carlos-instances.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" data-instances.mount sysinit.target run-carlos-logs.mount |
| +Requires="carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" sysinit.target run-carlos-instances.mount data-instances.mount run-carlos-logs.mount |
| Requisite= |
| -Wants=-.mount tmp.mount |
| +Wants=tmp.mount -.mount |
| BindsTo=carlos-edge.service |
| PartOf= |
| Upholds= |
| @@ -343,7 +343,7 @@ ConsistsOf= |
| Conflicts=shutdown.target |
| ConflictedBy= |
| Before=carlos-edge-drain.service shutdown.target |
| -After=sysinit.target run-carlos-instances.mount systemd-journald.socket "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" -.mount data-instances.mount carlos-edge.service run-carlos-logs.mount tmp.mount systemd-tmpfiles-setup.service basic.target |
| +After=sysinit.target run-carlos-instances.mount "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" systemd-journald.socket carlos-edge.service run-carlos-logs.mount tmp.mount data-instances.mount basic.target -.mount systemd-tmpfiles-setup.service |
| OnSuccess= |
| OnSuccessOf= |
| OnFailure= |
| @@ -357,7 +357,7 @@ StopPropagatedFrom= |
| JoinsNamespaceOf= |
| SliceOf= |
| RequiresMountsFor= |
| -WantsMountsFor=/tmp /var/tmp |
| +WantsMountsFor=/var/tmp /tmp |
| Documentation= |
| Description=carlos gVisor demo instance bright-otter-42.example.com |
| AccessSELinuxContext= |
diff --git a/internal/host/testdata/gvisor-systemd257/run-before.cat b/internal/host/testdata/gvisor-systemd257/run-before.cat| index 014882dd5..009e1e73e 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-before.cat |
| +++ b/internal/host/testdata/gvisor-systemd257/run-before.cat |
| @@ -36,6 +36,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/testdata/gvisor-systemd257/run-before.show b/internal/host/testdata/gvisor-systemd257/run-before.show| index e535ba742..cf498386f 100644 |
| --- a/internal/host/testdata/gvisor-systemd257/run-before.show |
| +++ b/internal/host/testdata/gvisor-systemd257/run-before.show |
| @@ -108,7 +108,7 @@ DevicePolicy=auto |
| TasksAccounting=yes |
| TasksMax=320 |
| IPAccounting=no |
| -IPAddressDeny=0.0.0.0/0 ::/0 |
| +IPAddressDeny=::/0 0.0.0.0/0 |
| ManagedOOMSwap=auto |
| ManagedOOMMemoryPressure=auto |
| ManagedOOMMemoryPressureLimit=0 |
| @@ -206,8 +206,9 @@ SameProcessGroup=no |
| UtmpMode=init |
| IgnoreSIGPIPE=yes |
| NoNewPrivileges=no |
| +SystemCallFilter=~_sysctl add_key adjtimex afs_syscall bdflush bpf break clock_adjtime clock_adjtime64 clock_settime clock_settime64 create_module delete_module finit_module ftime get_kernel_syms getpmsg gtty idle init_module io_uring_enter io_uring_register io_uring_setup ioperm iopl kexec_file_load kexec_load keyctl lock modify_ldt mpx open_by_handle_at pciconfig_iobase pciconfig_read pciconfig_write perf_event_open prof profil putpmsg query_module reboot request_key s390_pci_mmio_read s390_pci_mmio_write security setns settimeofday sgetmask ssetmask stime stty subpage_prot swapoff swapon sys_debug_setcontext sysfs tuxcall ulimit uselib userfaultfd ustat vm86 vm86old vserver |
| SystemCallArchitectures=native |
| -SystemCallErrorNumber=2147483646 |
| +SystemCallErrorNumber=38 |
| LockPersonality=yes |
| RuntimeDirectoryPreserve=no |
| RuntimeDirectoryMode=0755 |
| @@ -242,13 +243,13 @@ SendSIGHUP=no |
| WatchdogSignal=6 |
| Id=carlos-instance-gvisor@bright\x2dotter\x2d42.example.com.service |
| Names="carlos-instance-gvisor@bright\\x2dotter\\x2d42.example.com.service" |
| -Requires=run-carlos-instances.mount data-instances.mount sysinit.target "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" run-carlos-logs.mount |
| -Wants=-.mount tmp.mount |
| +Requires=run-carlos-logs.mount data-instances.mount run-carlos-instances.mount sysinit.target "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" |
| +Wants=tmp.mount -.mount |
| BindsTo=carlos-edge.service |
| Conflicts=shutdown.target |
| -Before=shutdown.target carlos-edge-drain.service |
| -After=tmp.mount -.mount sysinit.target carlos-edge.service run-carlos-instances.mount systemd-tmpfiles-setup.service basic.target run-carlos-logs.mount data-instances.mount systemd-journald.socket "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" |
| -WantsMountsFor=/tmp /var/tmp |
| +Before=carlos-edge-drain.service shutdown.target |
| +After=data-instances.mount systemd-journald.socket "carlos-instances-bright\\x2dotter\\x2d42.example.com.slice" basic.target carlos-edge.service run-carlos-instances.mount tmp.mount systemd-tmpfiles-setup.service sysinit.target -.mount run-carlos-logs.mount |
| +WantsMountsFor=/var/tmp /tmp |
| Description=carlos gVisor demo instance bright-otter-42.example.com |
| LoadState=loaded |
| ActiveState=inactive |
diff --git a/internal/host/units/carlos-demo-build-gvisor@.service b/internal/host/units/carlos-demo-build-gvisor@.service| index 11b492ed0..d70ff1ddc 100644 |
| --- a/internal/host/units/carlos-demo-build-gvisor@.service |
| +++ b/internal/host/units/carlos-demo-build-gvisor@.service |
| @@ -37,6 +37,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/units/carlos-instance-gvisor-probe.service b/internal/host/units/carlos-instance-gvisor-probe.service| index ca7b049d8..251b404e2 100644 |
| --- a/internal/host/units/carlos-instance-gvisor-probe.service |
| +++ b/internal/host/units/carlos-instance-gvisor-probe.service |
| @@ -36,6 +36,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/host/units/carlos-instance-gvisor@.service b/internal/host/units/carlos-instance-gvisor@.service| index 6f115fe6f..8261facae 100644 |
| --- a/internal/host/units/carlos-instance-gvisor@.service |
| +++ b/internal/host/units/carlos-instance-gvisor@.service |
| @@ -35,6 +35,8 @@ ProtectControlGroups=strict |
| LockPersonality=yes |
| RestrictRealtime=yes |
| SystemCallArchitectures=native |
| +SystemCallFilter=~@module @reboot @swap @raw-io @clock @cpu-emulation @obsolete @keyring bpf perf_event_open userfaultfd io_uring_setup io_uring_enter io_uring_register open_by_handle_at kexec_load kexec_file_load setns |
| +SystemCallErrorNumber=ENOSYS |
| CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SETFCAP |
| IPAddressDeny=any |
| InaccessiblePaths=/etc/carlos -/etc/carlos-mailer -/etc/shadow -/etc/gshadow -/etc/ssh |
diff --git a/internal/instancectl/gvisorunit_seccomp_test.go b/internal/instancectl/gvisorunit_seccomp_test.go| new file mode 100644 |
| index 000000000..f69a5825a |
| --- /dev/null |
| +++ b/internal/instancectl/gvisorunit_seccomp_test.go |
| @@ -0,0 +1,37 @@ |
| +package instancectl |
| + |
| +import ( |
| + "runtime" |
| + "strings" |
| + "testing" |
| + |
| + "github.com/carlosframework/platform/internal/execsandbox" |
| +) |
| + |
| +// A run or probe unit without the syscall deny-list (gvisor follow-ups) is |
| +// refused at readback: as systemd 257 shows a unit with no filter, and |
| +// with the filter but its default action, which kills runsc on its first |
| +// denied call instead of answering ENOSYS. |
| +func TestGVisorUnitRefusesUnfiltered(t *testing.T) { |
| + pin, _ := execsandbox.RunscFor(runtime.GOOS + "-" + runtime.GOARCH) |
| + for _, role := range []Role{RoleRun, roleProbe} { |
| + host := "demo.example" |
| + if role == roleProbe { |
| + host = ProbeDirName |
| + } |
| + valid := gvisorShownFixture(t, host, role) |
| + if err := gvisorUnitShown(valid, host, role, pin, gvisorTestLayout(t, host, role)); err != nil { |
| + t.Fatal(err) |
| + } |
| + shown := parseShow(valid) |
| + for key, unfiltered := range map[string]string{"SystemCallFilter": "~", "SystemCallErrorNumber": "2147483646"} { |
| + bad := valid + "\n" + key + "=" + unfiltered |
| + if value, ok := shown[key]; ok { |
| + bad = strings.Replace(valid, key+"="+value, key+"="+unfiltered, 1) |
| + } |
| + if gvisorUnitShown(bad, host, role, pin, gvisorTestLayout(t, host, role)) == nil { |
| + t.Errorf("%s: accepted %s=%s", role, key, unfiltered) |
| + } |
| + } |
| + } |
| +} |