Werk #22369 · Oct 29, 26
mk_podman: Fix CLI method for users without a login shell
If you use the connection method CLI (Podman command) in the rule
Podman hosts and containers (Linux), the agent plug-in mk_podman runs
podman as the owner of each container via su. Previously, su used the
login shell of this user. Service users often have /usr/sbin/nologin or
/bin/false as their login shell. For these users the command failed, and
the plug-in did not report their containers.
The plug-in now uses /bin/sh if the login shell of the user is not listed
in /etc/shells. All other users keep their own login shell, as before.
To get the fix, redeploy the agent plug-in on the affected hosts.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p20All Editions