-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.OS-Linux
Milestone
Description
The faccessat(2) syscall on Linux takes three arguments (see https://github.com/torvalds/linux/blob/8efcf34a263965e471e3999904f94d1f6799d42a/fs/open.c#L434), but Go's signature has an additional flags argument:
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)This is problematic as the extra argument is ignored by the kernel but there's no indication in the source code/during compilation. As the only possible argument AT_SYMLINK_NOFOLLOW can be used to prevent following symlinks this omission might have a security impact.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.OS-Linux