podman/pkg
Dan Čermák 0aedddd3b3
[systemd] Ensure that podCreateArgs appear last in ExecStartPre=
When creating a new pod without the `--name` flag, e.g.:
`podman pod create foobar`
it will get the name `foobar` implicitly and this will be recorded as the in the
`podCreateArgs`. Unfortunately, the implicit name only works if it appears as
the **last** argument of the startup command.
With 6e2e3a78ed we started appending the pod
security policy to the startCommand, resulting in the following `ExecStartPre=`
line:
```
/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-foobar.pid --pod-id-file %t/pod-foobar.pod-id foobar --exit-policy=stop
```
This fails to launch, as the `pod create` command expects only a single
non-flag parameter, but it assumes that `exit-policy=stop` is a second and
terminates immediately instead.

This fixes https://github.com/containers/podman/issues/15592

Signed-off-by: Dan Čermák <dcermak@suse.com>
2022-09-14 09:37:02 +02:00
..
annotations fix a number of `godot` issues 2022-03-22 13:04:35 +01:00
api Merge pull request #15753 from mheon/fix_15720 2022-09-13 13:35:10 +02:00
auth Fix stutters 2022-09-10 07:52:00 -04:00
autoupdate kube play: support auto updates and rollbacks 2022-09-06 08:56:55 +02:00
bindings Fix stutters 2022-09-10 07:52:00 -04:00
channel pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
checkpoint Fix stutters 2022-09-10 07:52:00 -04:00
copy pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
criu Fix spelling of GetCriuVersion 2022-06-27 12:57:44 +01:00
ctime golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
domain Merge pull request #15753 from mheon/fix_15720 2022-09-13 13:35:10 +02:00
env Fix stutters 2022-09-10 07:52:00 -04:00
errorhandling libpod/runtime: switch to golang native error wrapping 2022-07-04 15:39:00 +02:00
inspect pkg/inspect: remove unused ImageResult type 2022-05-24 16:07:39 +02:00
k8s.io kube: plug HostUsers in the pod spec 2022-09-08 22:08:50 +02:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine podman machine inspect: use report.Formatter over Template 2022-09-13 10:33:13 +02:00
namespaces podman: add uid and gid options to keep-id 2022-08-30 14:39:27 +02:00
parallel Fix stutters 2022-09-10 07:52:00 -04:00
ps Fix stutters 2022-09-10 07:52:00 -04:00
rootless Fix stutters 2022-09-10 07:52:00 -04:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal Implement CatchAll and StopCatch in signal_common.go 2022-06-27 13:27:12 +01:00
specgen Use new secret store API 2022-09-12 18:05:17 +02:00
specgenutil Fix stutters 2022-09-10 07:52:00 -04:00
systemd [systemd] Ensure that podCreateArgs appear last in ExecStartPre= 2022-09-14 09:37:02 +02:00
terminal podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust Fix stutters 2022-09-10 07:52:00 -04:00
util refactor: use `os.ReadDir` for lightweight directory reading 2022-09-11 15:58:31 +08:00