Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(669)

Issue 106170043: code review 106170043: syscall: disable Setuid/Setgid on linux (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by dfc
Modified:
9 years, 9 months ago
Reviewers:
ruiu, gobot, rsc, iant, bradfitz
CC:
iant, ruiu, golang-codereviews
Visibility:
Public.

Description

syscall: disable Setuid/Setgid on linux Update issue 1435 This proposal disables Setuid and Setgid on all linux platforms. Issue 1435 has been open for a long time, and it is unlikely to be addressed soon so an argument was made by a commenter https://code.google.com/p/go/issues/detail?id=1435#c45 That these functions should made to fail rather than succeed in their broken state.

Patch Set 1 #

Patch Set 2 : diff -r bb2f58dbe604 https://code.google.com/p/go #

Patch Set 3 : diff -r bb2f58dbe604 https://code.google.com/p/go #

Total comments: 1

Patch Set 4 : diff -r bb2f58dbe604 https://code.google.com/p/go #

Patch Set 5 : diff -r bb2f58dbe604 https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r d628e9e34434 https://code.google.com/p/go #

Total comments: 2

Patch Set 7 : diff -r d371eab5a39e https://code.google.com/p/go #

Patch Set 8 : diff -r 1d13818e6b3d https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -64 lines) Patch
M src/pkg/syscall/syscall_linux.go View 1 2 3 4 5 6 1 chunk +14 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_linux_386.go View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_linux_amd64.go View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_linux_arm.go View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_linux_386.go View 1 2 chunks +0 lines, -20 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_amd64.go View 1 2 chunks +0 lines, -20 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_arm.go View 1 2 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 20
dfc
Hello iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
9 years, 10 months ago (2014-06-23 00:03:00 UTC) #1
ruiu
https://codereview.appspot.com/106170043/diff/40001/src/pkg/syscall/syscall_linux.go File src/pkg/syscall/syscall_linux.go (right): https://codereview.appspot.com/106170043/diff/40001/src/pkg/syscall/syscall_linux.go#newcode849 src/pkg/syscall/syscall_linux.go:849: // that the call succeeded. That wording is slightly ...
9 years, 10 months ago (2014-06-23 00:11:47 UTC) #2
dfc
Hello iant@golang.org, ruiu@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 10 months ago (2014-06-23 00:19:52 UTC) #3
dfc
Hello iant@golang.org, ruiu@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 10 months ago (2014-06-23 00:20:15 UTC) #4
ruiu
LGTM but please wait for Ian.
9 years, 10 months ago (2014-06-23 00:26:21 UTC) #5
dfc
Of course, this one might be contentious. On Mon, Jun 23, 2014 at 10:26 AM, ...
9 years, 10 months ago (2014-06-23 00:27:49 UTC) #6
iant
I think we may as well pull Setgid from syscall_linux_xx.go into syscall_linux.go. If we ever ...
9 years, 10 months ago (2014-06-23 03:40:53 UTC) #7
dfc
Sorry, that was my mistake, copying and pasting into three different files. I'll follow your ...
9 years, 10 months ago (2014-06-23 03:44:22 UTC) #8
dfc
PTAL.
9 years, 10 months ago (2014-06-23 03:49:56 UTC) #9
iant
https://codereview.appspot.com/106170043/diff/80002/src/pkg/syscall/syscall_linux.go File src/pkg/syscall/syscall_linux.go (right): https://codereview.appspot.com/106170043/diff/80002/src/pkg/syscall/syscall_linux.go#newcode858 src/pkg/syscall/syscall_linux.go:858: //sysnb Setregid(rgid int, egid int) (err error) Looks like ...
9 years, 10 months ago (2014-06-23 21:43:30 UTC) #10
dfc
PTAL. I hope this is the last time. https://codereview.appspot.com/106170043/diff/80002/src/pkg/syscall/syscall_linux.go File src/pkg/syscall/syscall_linux.go (right): https://codereview.appspot.com/106170043/diff/80002/src/pkg/syscall/syscall_linux.go#newcode858 src/pkg/syscall/syscall_linux.go:858: //sysnb ...
9 years, 10 months ago (2014-06-23 21:49:42 UTC) #11
iant
LGTM Thanks. It's always the simple ones that get you.
9 years, 10 months ago (2014-06-23 22:52:00 UTC) #12
dfc
Thanks Ian. Should I wait for anyone else or are you happy to see this ...
9 years, 10 months ago (2014-06-23 23:06:17 UTC) #13
iant
You can commit. Ian On Mon, Jun 23, 2014 at 4:06 PM, Dave Cheney <dave@cheney.net> ...
9 years, 10 months ago (2014-06-23 23:15:06 UTC) #14
dfc
*** Submitted as https://code.google.com/p/go/source/detail?r=ae0d51eadf44 *** syscall: disable Setuid/Setgid on linux Update issue 1435 This proposal ...
9 years, 10 months ago (2014-06-23 23:16:39 UTC) #15
gobot
This CL appears to have broken the netbsd-amd64-bsiegert builder. See http://build.golang.org/log/01167d7336a18b40ef7760ca3271f6b203f16b6c
9 years, 10 months ago (2014-06-23 23:31:22 UTC) #16
dfc
A falsehood! # GOMAXPROCS=2 runtime -cpu=1,2,4 --- FAIL: TestFinalizerType-4 (5.63s) mfinal_test.go:61: finalizer for type func(*int) ...
9 years, 10 months ago (2014-06-23 23:42:22 UTC) #17
rsc
Should these be removed instead?
9 years, 9 months ago (2014-06-26 15:07:01 UTC) #18
iant
On Thu, Jun 26, 2014 at 8:07 AM, <rsc@golang.org> wrote: > Should these be removed ...
9 years, 9 months ago (2014-06-26 16:30:18 UTC) #19
bradfitz
9 years, 9 months ago (2014-06-26 16:31:26 UTC) #20
Yeah I say keep them. Fewer api exceptions. And maybe it'll be fixed in the
future.
 On Jun 26, 2014 9:30 AM, "Ian Lance Taylor" <iant@golang.org> wrote:

> On Thu, Jun 26, 2014 at 8:07 AM,  <rsc@golang.org> wrote:
> > Should these be removed instead?
>
> I guess it's a question of which we think will break the API more.
> Right now you can at least compile code that uses syscall.Setuid, and
> it will work on most systems even if it manages to fail on GNU/Linux.
>
> Ian
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b