Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-118835

execution in user context is not support on non-local systems

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-8.10.z
    • rhel-8.10
    • systemd
    • No
    • Moderate
    • rhel-systemd
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      For cockpit-podman we want to rewrite our test suite to use systemd-run to run podman as a different user as runuser or alternatives don't work as podman requires a valid logind session.

      What is the impact of this issue to you?

      Cockpit's CI infrastructure wants to use systemd-run to execute commands as `admin` in tests to for example run podman which requires a valid logind session. This would simplify our tests as otherwise we will have to use machinectl shell admin@ which is a less nice API to use and support. All our other test images can use systemd-run.

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. sudo systemd-run --machine=admin@ --quiet --user --collect --pipe --wait podman run --rm docker.io/library/alpine echo hello

      Expected results

      the podman containe runs and echos 'hello'.

      Actual results

      Execution in user context is not supported on non-local systems.

              jamacku@redhat.com Jan Macku
              jvanderw@redhat.com Jelle van der Waa
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: