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

cmd/create: Mount a new devpts file system at /dev/pts #581

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

debarshiray
Copy link
Member

As suggested by Giuseppe Scrivano.

However, I don't understand the issue well enough to actually come up with a meaningful commit message. We should at least explain the user-facing problem that this solves.

@softwarefactory-project-zuul
Copy link

Build failed.

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Oct 14, 2020
@debarshiray debarshiray force-pushed the wip/rishi/mount-devpts branch from 83861ec to 210134b Compare October 14, 2020 19:02
@softwarefactory-project-zuul
Copy link

Build failed.

When the host's /dev directory is bind mounted into the toolbox
container, then pseudo-terminal devices created for the container have
their group ownership set to 'nobody'.

This is because bind mounting /dev also pulls in the devpts file
system at the host's /dev/pts, which is owned by the 'tty' group on the
host. Since this GID is not available inside the container, it's
represented as 'nobody'.

This can be addressed by mounting a fresh devpts file system inside the
toolbox container. It ensures that pseudo-terminal devices created for
the container are owned by the container's 'tty' group.

As suggested by Giuseppe Scrivano.

containers#581
@debarshiray debarshiray force-pushed the wip/rishi/mount-devpts branch from 210134b to 494007b Compare October 20, 2020 14:36
@softwarefactory-project-zuul
Copy link

Build failed.

@debarshiray debarshiray merged commit 494007b into containers:master Oct 20, 2020
@debarshiray debarshiray deleted the wip/rishi/mount-devpts branch October 20, 2020 14:49
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.

1 participant