We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
go version
go version go1.7.3 linux/amd64
go env
GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/schmichael/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build019656358=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1"
Add UMOUNT_NOFOLLOW = 0x8 constant to prevent symlink traversal attacks when unmounting filesystems.
UMOUNT_NOFOLLOW = 0x8
Present since Linux 2.6.34: torvalds/linux@db1f05b
The text was updated successfully, but these errors were encountered:
Want to send a patch? https://golang.org/doc/contribute.html
Sorry, something went wrong.
CL https://golang.org/cl/46771 mentions this issue.
golang/sys@90796e5
unix: add UMOUNT_NOFOLLOW constant
46ed841
Add the UMOUNT_NOFOLLOW on Linux, available since Linux 2.6.34. See http://man7.org/linux/man-pages/man2/umount.2.html and torvalds/linux@db1f05bb85d796 Fixes golang/go#18316 Change-Id: I5c7dafdbb311f287b6cf290aa8a0eaf2940b9834 Reviewed-on: https://go-review.googlesource.com/46771 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?Enhancement
Add
UMOUNT_NOFOLLOW = 0x8
constant to prevent symlink traversal attacks when unmounting filesystems.Present since Linux 2.6.34: torvalds/linux@db1f05b
The text was updated successfully, but these errors were encountered: