Skip to content

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Aug 28, 2018

subgid is defined per user, not group (see subgid(5))

This commit also adds support for specifying subuid owner with a numeric UID.

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

@AkihiroSuda
Copy link
Member Author

Note that these functions are not used by runc itself, and looks like only consumed by RootlessKit: https://github.com/search?q=currentgroupsubgids&type=Code

Maybe we can just remove these functions instead.

subgid is defined per user, not group (see subgid(5))

This commit also adds support for specifying subuid owner with a numeric UID.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
return ParseSubIDFileFilter(fileName, filter)
}

func CurrentGroupSubGIDs() ([]SubID, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this going to break anyone?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK no #1880 (comment)

@AkihiroSuda
Copy link
Member Author

@cyphar PTAL?

@cyphar
Copy link
Member

cyphar commented Oct 16, 2018

LGTM.

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Oct 16, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 58592df into opencontainers:master Oct 16, 2018
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