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: merge common syscall implementations #1613

Merged
merged 1 commit into from
Oct 16, 2017
Merged

libcontainer: merge common syscall implementations #1613

merged 1 commit into from
Oct 16, 2017

Conversation

tklauser
Copy link
Contributor

@tklauser tklauser commented Oct 16, 2017

There are essentially two possible implementations for Setuid/Setgid on
Linux, either using SYS_SETUID32/SYS_SETGID32 or SYS_SETUID/SYS_SETGID,
depending on the architecture (see golang/go#1435 for why Setuid/Setgid
aren currently implemented for Linux neither in syscall nor in
golang.org/x/sys/unix).

Reduce duplication by merging the currently implemented variants and
adjusting the build tags accordingly.

Signed-off-by: Tobias Klauser tklauser@distanz.ch

@tklauser tklauser mentioned this pull request Oct 16, 2017
@cyphar
Copy link
Member

cyphar commented Oct 16, 2017

LGTM.

Approved with PullApprove

There are essentially two possible implementations for Setuid/Setgid on
Linux, either using SYS_SETUID32/SYS_SETGID32 or SYS_SETUID/SYS_SETGID,
depending on the architecture (see golang/go#1435 for why Setuid/Setgid
aren currently implemented for Linux neither in syscall nor in
golang.org/x/sys/unix).

Reduce duplication by merging the currently implemented variants and
adjusting the build tags accordingly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser changed the title libcontainter: merge common syscall implementations libcontainer: merge common syscall implementations Oct 16, 2017
@TomSweeneyRedHat
Copy link

LGTM

@crosbymichael
Copy link
Member

crosbymichael commented Oct 16, 2017

LGTM

Approved with PullApprove

@crosbymichael
Copy link
Member

@cyphar you will have to re-lgtm

@cyphar
Copy link
Member

cyphar commented Oct 16, 2017

LGTM.

Approved with PullApprove

@cyphar cyphar merged commit d2bc081 into opencontainers:master Oct 16, 2017
cyphar added a commit that referenced this pull request Oct 16, 2017
  libcontainer: merge common syscall implementations

LGTMs: @crosbymichael @cyphar
Closes #1613
@tklauser tklauser deleted the syscall-linux-merge branch October 18, 2017 07:17
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.

4 participants