Skip to content

tests: add various !terminal tests#1357

Merged
hqhq merged 2 commits into
opencontainers:masterfrom
cyphar:noterminal-io-tests
Oct 25, 2017
Merged

tests: add various !terminal tests#1357
hqhq merged 2 commits into
opencontainers:masterfrom
cyphar:noterminal-io-tests

Conversation

@cyphar
Copy link
Copy Markdown
Member

@cyphar cyphar commented Mar 4, 2017

Previously we weren't testing that detached io works properly -- which
will be quite important in the case for rootless containers.

Signed-off-by: Aleksa Sarai asarai@suse.de

@crosbymichael
Copy link
Copy Markdown
Member

Can you rebase this one if its still needed and you want to add these tests.

@cyphar
Copy link
Copy Markdown
Member Author

cyphar commented Oct 22, 2017

Rebased. The tests fail because of a bug introduced by #1529 -- I'll work on fixing this in a bit.

Previously we would handle the "unmapped stdio" case by just doing a
simple check, however this didn't handle cases where the overflow_uid
was actually mapped in the user namespace. Instead of doing some
userspace checks, just try to do the fchown(2) and ignore EINVAL
(unmapped) or EPERM (lacking privilege over inode) errors.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Previously we weren't testing that detached io works properly -- which
will be quite important in the case for rootless containers.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar
Copy link
Copy Markdown
Member Author

cyphar commented Oct 24, 2017

I've fixed the rootless bug, everything works now.

/cc @opencontainers/runc-maintainers

@crosbymichael
Copy link
Copy Markdown
Member

crosbymichael commented Oct 24, 2017

LGTM

Approved with PullApprove

1 similar comment
@hqhq
Copy link
Copy Markdown
Contributor

hqhq commented Oct 25, 2017

LGTM

Approved with PullApprove

@hqhq hqhq merged commit c9b649d into opencontainers:master Oct 25, 2017
@cyphar cyphar deleted the noterminal-io-tests branch October 25, 2017 03:20
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

Successfully merging this pull request may close these issues.

3 participants