Skip to content

Document that std::os::unix::process::CommandExt.uid() triggers setgroups(0,0) #39186

Closed
@zackw

Description

@zackw

While digging around for something else I have just discovered that setting the UID for a subprocess with CommandExt.uid() also causes a call to setgroups(0,0) in the child. This should be documented.

(Related to #38527)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processArea: `std::process` and `std::env`C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions