Skip to content

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

Merged
debarshiray merged 1 commit into
containers:masterfrom
debarshiray:wip/rishi/mount-devpts
Oct 20, 2020
Merged

debarshiray merged 1 commit into
containers:masterfrom
debarshiray:wip/rishi/mount-devpts

Conversation

@debarshiray

Copy link
Copy Markdown
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-delete-me

Copy link
Copy Markdown

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-delete-me

Copy link
Copy Markdown

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-delete-me

Copy link
Copy Markdown

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