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

tests: add various !terminal tests #1357

Merged
merged 2 commits into from
Oct 25, 2017
Merged

tests: add various !terminal tests #1357

merged 2 commits into from
Oct 25, 2017

Conversation

cyphar
Copy link
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
Member

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

@cyphar
Copy link
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
Member Author

cyphar commented Oct 24, 2017

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

/cc @opencontainers/runc-maintainers

@crosbymichael
Copy link
Member

crosbymichael commented Oct 24, 2017

LGTM

Approved with PullApprove

1 similar comment
@hqhq
Copy link
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