Skip to content

Tracking Issue for Unix process user/group ID APIs #166252

Description

Feature gate: #![feature(unix_process_user_group_ids)]

This is a tracking issue for adding APIs to query the current process's Unix user/group IDs in std::os::unix::process: uid, effective_uid, gid, and effective_gid.

Public API

// std::os::unix::process

#[must_use]
pub fn uid() -> u32;

#[must_use]
pub fn effective_uid() -> u32;

#[must_use]
pub fn gid() -> u32;

#[must_use]
pub fn effective_gid() -> u32;

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • Should we also add supplementary groups query API in the same feature (or a follow-up)?

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    C-tracking-issue
    T-libs
    S-tracking-unimplemented
    on Nov 20, 2026
  2. bardiharborow commented on Nov 21, 2026

    @bardiharborow
    Contributor

    @rustbot label +A-process +O-unix

  3. added
    A-process
    O-unix
    on Nov 21, 2026
  4. added a commit that references this issue on Nov 23, 2026
    c342a3f
  5. added a commit that references this issue on Nov 23, 2026
    c05412f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processC-tracking-issueO-unixS-tracking-unimplementedT-libs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions