Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/std* don't work with podmans --userns=auto #3625

Open
M1cha opened this issue Oct 4, 2022 · 0 comments
Open

/dev/std* don't work with podmans --userns=auto #3625

M1cha opened this issue Oct 4, 2022 · 0 comments

Comments

@M1cha
Copy link

M1cha commented Oct 4, 2022

crun had the same bug and it's about to be fixed.
I'm not using runc personally but a quick test showed that it's affected too:

$ podman run --runtime runc --rm --userns=auto:size=65534 busybox /bin/stat -L /proc/1/fd/1
  File: /proc/1/fd/1
  Size: 0               Blocks: 0          IO Block: 4096   fifo
Device: dh/13d  Inode: 6130010     Links: 1
Access: (0600/prw-------)  Uid: (65534/  nobody)   Gid: (65534/  nobody)
Access: 2022-10-04 08:52:57.891243391 +0000
Modify: 2022-10-04 08:52:57.891243391 +0000
Change: 2022-10-04 08:52:57.891243391 +0000
$ podman run --runtime runc --rm --userns=auto:size=65534 busybox /bin/sh -c 'echo hello >> /dev/stdout'
/bin/sh: can't create /dev/stdout: Permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant