Commit Graph

24713 Commits

Author SHA1 Message Date
Giuseppe Scrivano 260035d069
vendor: update common and buildah
vendor the following dependencies:

- https://github.com/containers/common/pull/2375
- https://github.com/containers/buildah/pull/6074

Closes: https://github.com/containers/podman/issues/25634

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-03-21 14:36:00 +01:00
openshift-merge-bot[bot] 94e77af09d
Merge pull request #25638 from containers/renovate/setuptools-77.x
chore(deps): update dependency setuptools to v77
2025-03-21 08:00:03 +00:00
renovate[bot] 0ca539c3ab
chore(deps): update dependency setuptools to v77
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 17:05:33 +00:00
openshift-merge-bot[bot] 3e247db6dc
Merge pull request #25636 from giuseppe/update-common-20-march-2025
vendor: update c/common
2025-03-20 17:04:43 +00:00
openshift-merge-bot[bot] d211dbf9aa
Merge pull request #25631 from rgaiacs/fix-docs-introduction
Fix some code blocks in documentation
2025-03-20 14:41:02 +00:00
Giuseppe Scrivano 88b62d2c27
vendor: update c/common
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-03-20 13:37:19 +01:00
Raniere Silva 67165d8fc2
Fix some code blocks in documentation
```release-note
none
```

Signed-off-by: Raniere Silva <Raniere.CostadaSilva@gesis.org>
2025-03-20 13:33:00 +01:00
openshift-merge-bot[bot] 2b0aef554e
Merge pull request #25619 from l0rd/machine-cp-flake
Fix flake on machine cp e2e test
2025-03-19 14:07:54 +00:00
openshift-merge-bot[bot] 5c9fd29808
Merge pull request #25617 from giuseppe/use-securejoin-openinroot
container: replace code with securejoin.OpenInRoot()
2025-03-19 13:37:37 +00:00
openshift-merge-bot[bot] 0031c9500a
Merge pull request #25625 from giuseppe/set-additional-gids-exec
libpod: fix handling of additional gids in exec
2025-03-19 13:26:39 +00:00
Giuseppe Scrivano 51ca839c14
libpod: fix handling of additional gids in exec
change the behavior to match what Docker does.

Docker always adds the specified additional gids, no matter the user
specified to exec.

Instead the additional gids read from the /etc/group file are added
only when there is not an explicit group specified in the exec
userspec.

➜ docker run -d --name container-with-groups --group-add mail --group-add news --group-add cron --group-add ftp --rm alpine top
c4190928097f64cabb83af7cac6ec10041a9e74de359433dfd3e5b9d8a7dce1a
➜ docker exec container-with-groups id -G
0 1 2 3 4 6 10 11 12 13 16 20 21 26 27
➜ docker exec --user root container-with-groups id -G
0 1 2 3 4 6 10 11 12 13 16 20 21 26 27
➜ docker exec --user nobody container-with-groups id -G
65534 12 13 16 21
➜ docker exec --user nobody:nobody container-with-groups id -G
65534 12 13 16 21
➜ docker exec --user root:root container-with-groups id -G
0 12 13 16 21
➜ docker exec --user root:root container-with-groups id -G
0 12 13 16 21

Closes: https://github.com/containers/podman/issues/25610

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-03-19 12:56:27 +01:00
Giuseppe Scrivano c0627de21d
container: replace code with securejoin.OpenInRoot()
when the code was first added, there was no securejoin.OpenInRoot().
Since there is a function already provided by a dependency and already
used in libpod, replace the custom code with securejoin.OpenInRoot().

The new version does not report a symlink that points outside the
root, but it is still resolved relative to the specified mountpoint,
since that is the openat2 semantic.  It does not affect the security
of the function.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-03-19 09:32:47 +01:00
openshift-merge-bot[bot] b4f659754c
Merge pull request #25620 from Luap99/toml
vendor: update github.com/burntsushi/toml to v1.5.0
2025-03-19 02:04:29 +00:00
Paul Holzinger a23511e341
vendor: update github.com/burntsushi/toml to v1.5.0
Includes one minor test fix as the line number reported as error was
changed, it seems to be actually correct now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-18 15:34:42 +01:00
openshift-merge-bot[bot] 029deffdd6
Merge pull request #25555 from baude/roadmapupdate
Update roadmap for Q1
2025-03-18 14:09:58 +00:00
Mario Loriedo ac787b6691 Fix flake on machine cp e2e test
Explicitly close file to avoid machine e2e test
to fail on CI from time to time.

See for example this failed execution of the machine-wsl task:
https://api.cirrus-ci.com/v1/artifact/task/6697640798191616/html/machine-wsl-podman-windows-rootless-host-sqlite.log.html

Fix #25614

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-03-18 14:45:43 +01:00
openshift-merge-bot[bot] 39da6cdf90
Merge pull request #25616 from containers/renovate/setuptools-76.x
chore(deps): update dependency setuptools to ~=76.1.0
2025-03-18 12:39:07 +00:00
renovate[bot] 829cc591df
chore(deps): update dependency setuptools to ~=76.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 11:22:57 +00:00
openshift-merge-bot[bot] ba787dabab
Merge pull request #25467 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.37.0
2025-03-18 11:20:25 +00:00
openshift-merge-bot[bot] 98de6f3c10
Merge pull request #25611 from containers/renovate/github.com-opencontainers-runc-1.x
fix(deps): update module github.com/opencontainers/runc to v1.2.6
2025-03-18 10:50:09 +00:00
renovate[bot] 16918614b5
fix(deps): update module github.com/opencontainers/runc to v1.2.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 22:34:18 +00:00
Brent Baude 1e4acff971 Update roadmap for Q1
Even though this is tardy, here is an update reflecting milestones and
features for 1Q25.

Fixes https://issues.redhat.com/browse/RUN-2447

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-03-17 15:27:51 -05:00
openshift-merge-bot[bot] 93675fdba2
Merge pull request #25506 from Luap99/disk-usage
Fix system df negative reclaimable size bug
2025-03-17 13:55:28 +00:00
openshift-merge-bot[bot] e16cfdd373
Merge pull request #25600 from yaneti/add-riscv64
[skip-ci] RPM: Add riscv64 to ExclusiveArch-es
2025-03-17 12:52:10 +00:00
Paul Holzinger b3fe3906bb
test/e2e: skip idmapped mounts test with vfs
Giuseppe is working on some proper fixes, for now in order to get this
moved along skip it so we can merge the disk usage fix.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-17 13:48:12 +01:00
Paul Holzinger 69dc0720b9
docs: add note about systemd df RECLAIMABLE bug
Our calculation is just wrong and the way the entire API is designed it
cannot work. This is the same interface as docker is using and they have
the same bug there. So simply document this as known problem, in case
users complain we at least have something to point to.

An actual fix might be possible but not without reworking the full API
and because this is exposed in the docker compat and libpod REST API we
cannot really change it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-17 13:38:06 +01:00
Paul Holzinger 97cab8c9c0
test/system: add systemd df regression test
Add a test for https://github.com/containers/podman/issues/24452

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-17 13:38:06 +01:00
Paul Holzinger 38d6d1c560
vendor: update c/common to latest
Includes my DiskUsage() changes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-17 13:38:05 +01:00
renovate[bot] 39e3df6b55
fix(deps): update module golang.org/x/net to v0.37.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 12:35:54 +00:00
Yanko Kaneti 2b813eef9d [skip-ci] RPM: Add riscv64 to ExclusiveArch-es
Signed-off-by: Yanko Kaneti <yaneti@declera.com>
2025-03-17 13:42:41 +02:00
openshift-merge-bot[bot] 693df8ae68
Merge pull request #25554 from containers/renovate/setuptools-76.x
chore(deps): update dependency setuptools to v76
2025-03-17 11:21:27 +00:00
openshift-merge-bot[bot] f8ec74803b
Merge pull request #25580 from jakecorrenti/honor-rootfulness
Honor rootfulness when SSH-ing into named Machine
2025-03-15 13:20:20 +00:00
renovate[bot] dd4f67fd72
chore(deps): update dependency setuptools to v76
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-15 12:58:42 +00:00
Jake Correnti f166f1503c
Honor rootfulness when SSH-ing into named Machine
Fix a bug where SSH-ing into a named Podman Machine (not podman-machine-default)
results in the user being put in the rootless shell if the default system
connection is rootless.

Resolves: https://github.com/containers/podman/issues/25332

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2025-03-14 13:48:49 -04:00
openshift-merge-bot[bot] ca10fce595
Merge pull request #25586 from mheon/fix_25585
Fix a potential deadlock during `podman cp`
2025-03-14 15:13:24 +00:00
Matt Heon 687fe08f42 Fix a potential deadlock during `podman cp`
Have one function without a `defer lock.unlock()` as one of the
commands in it calls a function that also takes the same lock,
so the unlock has to happen prior to function completion.
Unfortunately, this is prone to errors, like the one here: I
missed a case, and we could return without unlocking, causing a
deadlock later in the cleanup code as we tried to take the same
lock again.

Refactor the command to use `defer unlock()` to simplify and
avoid any further errors of this type.

Introduced by e66b788a51 - this
should be included in any backports of that commit.

Fixes #25585

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-03-14 10:37:59 -04:00
openshift-merge-bot[bot] f981584f91
Merge pull request #25561 from Luap99/new-images
New images 2025-03-12
2025-03-14 13:44:55 +00:00
openshift-merge-bot[bot] fcc3e2d74c
Merge pull request #25564 from containers/renovate/go-golang.org-x-net-vulnerability
fix(deps): update module golang.org/x/net to v0.36.0 [security]
2025-03-14 11:27:09 +00:00
openshift-merge-bot[bot] a9b28bd6f6
Merge pull request #25551 from Luap99/packit-arch
[skip-ci] packit: fix missing fedora arches
2025-03-14 10:26:38 +00:00
openshift-merge-bot[bot] d1d8f3334f
Merge pull request #25520 from Honny1/fix-hc-inf-log
Fix HealthCheck log destination, count, and size defaults
2025-03-13 18:59:34 +00:00
Paul Holzinger bcc2063e9e
test/e2e: use go net.Dial() ov nc
This is simpler as we don't have to rely on an external command. The
retry loop is need as we check for a container porcess connection, and
while we know podman binds the port before returning there is no way to
know whenthe contianer application bound the port so we must retry a
bit.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 19:44:14 +01:00
Paul Holzinger f8787bb219
test: use ncat over nc
nc can be provided by either ncat (nmap) or netcat (OpenBSD), we only
work with the nmap version so make sure we always use that one and not
the short alias which can be resolved to either one.

It is not clear to me what changed on rawhide but it seemsv netcat is
preferred even though we have nmap-ncat installed.

Note this only changes the host side nc calls, the Alpine based images
only have nc as command so we must continue to use it inside.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 19:44:14 +01:00
Paul Holzinger 1945506905
New images 2025-03-12
from https://github.com/containers/automation_images/pull/401

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 19:44:14 +01:00
openshift-merge-bot[bot] 79e05ca199
Merge pull request #25575 from giuseppe/test-not-safe-for-parallel
libpod: improve createRootlessContainer
2025-03-13 17:35:40 +00:00
openshift-merge-bot[bot] 0e94821ba1
Merge pull request #25573 from Luap99/minor-fixes
Some minor follow up fixes from PR comments
2025-03-13 17:16:11 +00:00
Giuseppe Scrivano a2953dad10
libpod: improve createRootlessContainer
do not run the expensive pmount.GetMounts() function if it is not
needed.

As a follow-up for commit c9c44d400c, do
not restore the propagation flag for the parent mount to shared unless
it was changed to slave first.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-03-13 16:55:11 +01:00
Paul Holzinger a1008a1294
libpod: add missing return in WaitForConditionWithInterval()
AS pointed out by Valentin on #25491, it is not an actual bug but this
is makes it more clear how it works and should not confuse readers why
this case has no return.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 14:10:33 +01:00
Paul Holzinger 5207feebd4
pkg/domain/infra/abi/play.go: fix one comment
It did start there, as pointed out by Ygal on #25481.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 14:08:48 +01:00
Paul Holzinger 94cacea064
docs: fix some minor issues
As pointed out by Tom on the PR #25397.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 14:06:20 +01:00
openshift-merge-bot[bot] 6e34514553
Merge pull request #25397 from Luap99/artifact-mount
add artifact mount support
2025-03-13 12:53:34 +00:00