Visitar URL original
Debugger pin Invalid parsing of /proc/self/cgroup with podman 路 Issue #3245 路 pallets/werkzeug 路 GitHub
Skip to content

Debugger pin Invalid parsing of /proc/self/cgroup with podman聽#3245

Closed

Description

@Julien00859

Hello there 馃憢

with open("/proc/self/cgroup", "rb") as f:
linux += f.readline().strip().rpartition(b"/")[2]

The code assumes that the last word (/ separated) contains a unique id.

It is the case when using docker:

0::/system.slice/docker-ae27c5f2b38f985f250cce20cc944bdb781714a6c1b40d0a3e3aa21f1e84ff6b.scope

It is not the case when using podman, the last word is "container", it is the second to last word that contains a unique id:

0::/user.slice/user-1000.slice/user@1000.service/user.slice/libpod-3acc0df11a3a51f667956f97f6182be49ff700e1e19f100b688f86f457ac9086.scope/container

I guess that two independent podman containers are gonna share the same pin.


I noticed it while studying the format of /proc/self/cgroup using docker and podman. I knew you guys were using it for you debugger pin and I quickly checked your source code. I'm not using flask or werkzeug with podman so I'm not affected by this problem. I'm merely doing my "homework" of reporting a potential issue, feel free to dismiss it.

Regards,
Julien

Activity

  1. changed the title [-]Invalid parsing of /proc/self/cgroup with podman[/-] [+]Debugger pin Invalid parsing of /proc/self/cgroup with podman[/+] on Aug 19, 2026
  2. added this to the 3.1.9 milestone on Aug 20, 2026
  3. locked as resolved and limited conversation to collaborators on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions