-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Don't fchown when inheriting io #1354
Conversation
215/267 passed on RHEL - Failed. |
tty.go
Outdated
@@ -62,19 +61,10 @@ func createStdioPipes(p *libcontainer.Process, rootuid, rootgid int) (*tty, erro | |||
return t, nil | |||
} | |||
|
|||
func dupStdio(process *libcontainer.Process, rootuid, rootgid int) error { | |||
func inheritStdio(process *libcontainer.Process, rootuid, rootgid int) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also drop the rootuid
and rootuid
arguments?
Functionality works for us here in Garden-land against master and the rootless branch. Thanks @crosbymichael |
This is a fix for rootless containers and general io handling. The higher level systems must preparte the IO for the container in the detach case and make sure it is setup correctly for the container's process. Signed-off-by: Michael Crosby <[email protected]>
@cyphar updated |
After trying to run this under #774, I found that there's still two places where we're doing
So if you create a root terminal If you want I can fix this in #774 or we can figure out whether it's safe to delete that code too. |
@cyphar i can look at that independently also |
Reading over |
This is a fix for rootless containers and general io handling. The
higher level systems must preparte the IO for the container in the
detach case and make sure it is setup correctly for the container's
process.
Replacement for #1349
Fixes detached use case for #774
Signed-off-by: Michael Crosby [email protected]