[all-commits] [llvm/llvm-project] 98f3dd: [libc] Add setgroups and initgroups entrypoints (#...

Jeff Bailey via All-commits all-commits at lists.llvm.org
Tue Sep 29 12:45:35 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98f3dda3a7364bd022d2cd7d06ef5e26453fa2a8
      https://github.com/llvm/llvm-project/commit/98f3dda3a7364bd022d2cd7d06ef5e26453fa2a8
  Author: Jeff Bailey <jbailey at raspberryginger.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/arm/entrypoints.txt
    M libc/config/linux/i386/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/grp.yaml
    M libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
    A libc/src/__support/OSUtil/linux/syscall_wrappers/setgroups.h
    M libc/src/grp/CMakeLists.txt
    M libc/src/grp/grp_utils.cpp
    M libc/src/grp/grp_utils.h
    A libc/src/grp/initgroups.cpp
    A libc/src/grp/initgroups.h
    A libc/src/grp/setgroups.cpp
    A libc/src/grp/setgroups.h
    M libc/test/src/grp/CMakeLists.txt
    A libc/test/src/grp/initgroups_test.cpp
    A libc/test/src/grp/setgroups_test.cpp

  Log Message:
  -----------
  [libc] Add setgroups and initgroups entrypoints (#227272)

Add the setgroups and initgroups entrypoints from <grp.h> (GNU
extensions).

A Linux syscall wrapper is added for setgroups, supporting both
SYS_setgroups and SYS_setgroups32. The initgroups entrypoint initialises
the supplementary group access list for a specified user by reading the
group database using a scoped database stream and setting the resulting
groups via setgroups.

Assisted-by: Automated tooling, human reviewed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list