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

libcontainer/capabilities_linux: Drop os.Getpid() call #1724

Merged

Conversation

wking
Copy link
Contributor

@wking wking commented Feb 19, 2018

gocapability has supported 0 as “the current PID” since syndtr/gocapability#2. libcontainer was ported to that approach in 444cc29 (docker-archive/libcontainer#358), but the change was clobbered by 22df555 which landed via 5b73860 (docker-archive/libcontainer#388). This pull-request restores the changes from 444cc29.

@wking wking force-pushed the no-pid-for-capability-lookup branch from 853e095 to 50dc7ee Compare February 19, 2018 23:47
gocapability has supported 0 as "the current PID" since
syndtr/gocapability@5e7cce49 (Allow to use the zero value for pid to
operate with the current task, 2015-01-15, syndtr/gocapability#2).
libcontainer was ported to that approach in 444cc29 (namespaces:
allow to use pid namespace without mount namespace, 2015-01-27,
docker-archive/libcontainer#358), but the change was clobbered by 22df555
(Merge branch 'master' into api, 2015-02-19, docker-archive/libcontainer#388)
which landed via 5b73860 (Merge pull request opencontainers#388 from docker/api,
2015-02-19, docker-archive/libcontainer#388).  This commit restores the
changes from 444cc29.

Signed-off-by: W. Trevor King <wking@tremily.us>
@cyphar
Copy link
Member

cyphar commented Feb 20, 2018

LGTM.

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Feb 20, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 6988afe into opencontainers:master Feb 20, 2018
@wking wking deleted the no-pid-for-capability-lookup branch February 23, 2018 05:39
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