Skip to content

Wrong owner in /dev/pts #1016

@Gavus

Description

@Gavus

Describe the bug
My /dev/pts/ inside a toolbox have the owner set as root. Outside of toolbox they are owned by my user.

Steps how to reproduce the behaviour

  1. Enter a running toolbox with at least two sessions.
  2. Start python3.
  3. Enter: "import io; tty=io.TextIOWrapper(open("/dev/pts/x", "r+b", buffering=0))" (replace x with one of the session numbers).

Expected behaviour
No error.

Actual behaviour
"PermissionError: [Errno 13] Permission denied: '/dev/pts/x'.

Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99.3

Toolbox package info (Github)
tag 0.0.99.3

Output of podman version
e.g.,

Version:            3.0.1
RemoteAPI Version: ?
Go Version:         ?
OS/Arch:            linux/amd64
``

**Info about your OS**
Debian 11 (bullseye)

**Additional context**
I noticed this problem when using the python debugger module pudb, wanting to display the tui in another terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions