mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: disable Setuid/Setgid on linux
Update #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. LGTM=ruiu, iant R=iant, ruiu CC=golang-codereviews https://golang.org/cl/106170043
This commit is contained in:
parent
7d8da7dc4d
commit
343b4ba8c1
7 changed files with 14 additions and 64 deletions
|
|
@ -47,7 +47,6 @@ func NsecToTimeval(nsec int64) (tv Timeval) {
|
|||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||
//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
|
||||
//sysnb Setgid(gid int) (err error) = SYS_SETGID32
|
||||
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
|
||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
|
||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue