Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

stage0: don't change the group ownership of rootfs #1654

Merged
merged 1 commit into from Oct 21, 2015

Conversation

alban
Copy link
Member

@alban alban commented Oct 21, 2015

Setting the group of the rootfs to 'rkt' causes problems with user
namespaces when the group is not mapped in the user namespace. It
prevents the container from doing a 'mkdir' or a 'lstat' on /proc. See
systemd/systemd#1585

Setting the group ownership of the rootfs to 'rkt' was done in
#1452 so that the command 'rkt status'
could work as non-root. However, if the rootfs is r-x for others, setting
the group should not be necessary. r-x for others was removed by
#1607 but I am adding it back.

This patch reverts a part of #1602,
therefore fixing the regression with user namespaces. 'rkt status' as
non-root still works.

Fixes #1602


/cc @yifan-gu @krnowak

Setting the group of the rootfs to 'rkt' causes problems with user
namespaces when the group is not mapped in the user namespace. It
prevents the container from doing a 'mkdir' or a 'lstat' on /proc. See
systemd/systemd#1585

Setting the group ownership of the rootfs to 'rkt' was done in
rkt#1452 so that the command 'rkt status'
could work as non-root. However, if the rootfs is r-x for others, setting
the group should not be necessary. r-x for others was removed by
rkt#1607 but I am adding it back.

This patch reverts a part of rkt#1602,
therefore fixing the regression with user namespaces. 'rkt status' as
non-root still works.

Fixes rkt#1602
@krnowak
Copy link
Collaborator

krnowak commented Oct 21, 2015

LFAD.

krnowak added a commit that referenced this pull request Oct 21, 2015
stage0: don't change the group ownership of rootfs
@krnowak krnowak merged commit 9937594 into rkt:master Oct 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rkt: --private-users doesn't work if the rkt group exists
3 participants