Skip to content

x/sys/unix: add Getresuid and Getresgid #60483

Closed
@mateusz834

Description

@mateusz834

The x/sys/unix package can set the suid (saved UID) through setresuid, but there is no way to retrieve it (the getresuid(2) is missing).

I propose adding Getresuid to the x/sys/unix package (also probably Getresgid) with following signature:

func Getresuid(ruid *int, euid *int, suid *int) (err error)
func Getresgid(rgid *int, egid *int, sgid *int) (err error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions