Commit Graph
22 Commits
Author SHA1 Message Date
Daniel Golle f5c4a7b3d1 conmon: fall back to the runtime's exit status file
conmon learns a container's exit status by waiting for the pid it reads from
the runtime's --container-pidfile, which only works while the container is
conmon's own child. With ujail the container belongs to procd, so conmon has
nothing to wait for: it probes the pid with kill(pid, 0), finds it gone and
settles for a status of zero, as its own comment admits. podman then reports
0 for a container that exited 42, and an exec session that succeeded looks
like a failure.

Add a patch letting the runtime supply what conmon cannot observe: ujail
writes the status to an exit_status file beside the pid file, and conmon
adopts it in the one place it would otherwise guess. A runtime whose
container conmon does reap is unaffected, since no such file exists there.

020-fall-back-to-runtime-exit-status-file.patch also picks up two
fixes review caught: the fallback to a status of 0 now waits up to a
tenth of a second in 10ms steps for the runtime to finish writing the
file, since the runtime can only write it after the kernel has
already reaped the container and made the pid stop answering conmon's
probe, so either order is possible; and a status file is only trusted
if it is at least as new as the pid file, so a stale one left by an
earlier container in the same directory is ignored. Its header also
lost the `diff --git`/`index` lines and `git format-patch` version
trailer that don't survive `make package/conmon/refresh`, which is
what CI's "Dirty patches detected" check was catching on every
architecture. Verified via a scratch quilt tree against the pristine
2.2.1 source that the refreshed patch applies cleanly and stays
stable under a second refresh, and that the patched ctr_exit.c and
ctr_stdio.c both syntax-check clean against host glib.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-08-31 17:31:29 +01:00
Daniel Golle f64acded7a conmon: update to 2.2.1
Release notes: https://github.com/containers/conmon/releases/tag/v2.2.1

Upstream moved the install target from libexecdir/podman to bindir;
update Package/conmon/install accordingly and refresh
010-remove-libdl-dep.patch for the new context.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-06-02 00:33:07 +01:00
Tianling Shen ba04e87c99 conmon: Update to 2.1.12
Refreshed patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-09-20 13:11:50 +08:00
Oskari Rauta 53e5029fbe conmon: update to 2.1.10
bug fixes:
 - Fix incorrect free in conn_sock
 - logging: Respect log-size-max immediately after open
 - fix some issues flagged by SAST scan
 - src: fix write after end of buffer
 - src: open all files with O_CLOEXEC
 - oom-score: restore oom score before running exit command

new features:
 - Forward more messages on the sd-notify socket
 - logging: -l passthrough accepts TTYs

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2024-02-17 13:21:13 +08:00
Oskari Rauta 3d88d18ee2 conmon: update to 2.1.8
Bug fixes:
 - stdio: ignore EIO for terminals
 - ensure console socket buffers are properly sized
 - conmon: drop return after pexit()
 - ctrl: make accept4 failures fatal
 - logging: avoid opening /dev/null for each write
 - oom: restore old OOM score
 - Use default umask 0022

Misc changes:
 - cli: log parsing errors to stderr
 - Changes to build conmon for riscv64
 - Changes to build conmon for ppc64le
 - Fix close_other_fds on FreeBSD

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-09-16 21:42:34 +08:00
Oskari Rauta 665ae34856 conmon: update to 2.1.7
- Fix leaking symbolic links in the opt_socket_path directory
 - cgroup: Stumble on if we can't set up oom handling

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-03-07 11:35:06 +08:00
Oskari Rauta 779920ee29 conmon: update to 2.1.6
Bug fixes
 - Fix OOM watcher for cgroupv2 oom_kill events

Misc
 - Use --detach instead of -d
 - ctrl: drop fifo perms to 0660

[Release notes](https://github.com/containers/conmon/releases/tag/v2.1.6)

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-02-16 10:01:29 +08:00
Oskari Rauta 1394035a39 conmon: update to 2.1.5
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2023-01-11 19:52:45 +08:00
Oskari Rauta 1d55ac917f conmon: update to version 2.1.0
This release contains Bug fixes
patch refreshed

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2022-03-02 16:31:19 -08:00
Oskari Rauta e08862ba0b conmon: update to 2.0.32
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2022-01-24 15:45:01 -08:00
Oskari Rauta 4569f21812 conmon: update to v2.0.31
- conmon: free userdata files before exec cleanup
 - logging: new mode -l passthrough

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2021-12-16 10:15:03 +01:00
Oskari Rauta 537b6bd87b conmon: remove unnecessary dependency
this patch removes unnecessary dependency to golang/host
as pointed out by @jefferyto earlier at #17063 (comment)

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2021-11-29 01:45:15 -08:00
Oskari Rauta ab08ad2ad9 conmon: update to 2.0.30
bug fixes:
 - Remove unreachable code path
 - exit: report if the exit command was killed
 - exit: fix race zombie reaper
 - conn_sock: allow watchdog messages through the notify socket proxy
 - seccomp: add support for seccomp notify

misc:
 - Add seccomp to build dependency

included patch removes unnecessary dependency of libdl and also allows a succesfull build
disabled for arc where libseccomp does not seem to be available

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2021-11-05 16:54:21 +01:00
Rosen Penev 5ccd4d1c25 treewide: compile with tools/meson
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-17 22:06:52 -07:00
Oskari Rauta 9fdfe2e2c7 conmon: update to 2.0.29
Patch fixing segfaults on nulls was removed due to patch's content being now included in conmon's source since containers/conmon@355dbf1

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2021-06-10 23:32:57 +02:00
Oskari Rauta 463227f70c conmon: fix segfault, correct a typo and update description
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
2021-03-29 15:16:13 +01:00
Daniel Golle 301abeecdc conmon: update to version 2.0.27
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-03-27 02:46:13 +00:00
Rosen Penev c8128df4e4 conmon: update to 2.0.26
Switched to building with meson as it works better in a parallel
context.

Small Makefile adjustments for consistency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-05 14:32:33 +00:00
Daniel Golle 9811b829e4 conmon: update to version 2.0.24
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-01-17 18:59:33 +00:00
Rosen Penev 27b54ace9a conmon: add host build dependency on go
It seems to be needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-31 16:43:18 -08:00
Daniel Golle e66d6daa17 conmon: update to version 2.0.22
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-12-20 19:06:05 +00:00
Daniel Golle 62a7bbf7d6 conmon: new package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-11-07 15:51:49 +00:00