]> Cypherpunks repositories - gostls13.git/commit
syscall: check secondary group membership for Faccessat(..., AT_EACCESS) on Linux
authorTobias Klauser <tklauser@distanz.ch>
Fri, 19 Jun 2020 08:41:44 +0000 (10:41 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Sat, 20 Jun 2020 08:40:13 +0000 (08:40 +0000)
commit60f78765022a59725121d3b800268adffe78bde3
treebb7eba4835da9d19e9912889c095f21dfd8cfe7f
parentf2bba30e4068695fcb08ddf5006e776c1fd38eca
syscall: check secondary group membership for Faccessat(..., AT_EACCESS) on Linux

Follow glibc's implementation and check secondary group memberships
using Getgroups.

No test since we cannot easily change file permissions when not running
as root and the test is meaningless if running as root.

Same as CL 238722 did for x/sys/unix

Updates #39660

Change-Id: I6af50e27b255e33405558947a0ab3dfbc33b2d50
Reviewed-on: https://go-review.googlesource.com/c/go/+/238937
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_linux.go