]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: implement RLIMIT_AS against Mach RPCs
authorDiego Nieto Cid <dnietoc@gmail.com>
Fri, 15 Aug 2025 01:57:30 +0000 (02:57 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 21 Sep 2025 22:52:37 +0000 (00:52 +0200)
commit802b0eba519b1333c639fd0e1b55222099df9263
tree54edcd609848cf84ddb4672d669b9a76ad3693cb
parentc9cc047e9f222b20fa3704d67d46b39e3456119b
hurd: implement RLIMIT_AS against Mach RPCs

Check for VM limit RPCs

  * config.h.in: add #undef for HAVE_MACH_VM_GET_SIZE_LIMIT and
    HAVE_MACH_VM_SET_SIZE_LIMIT.
  * sysdeps/mach/configure.ac: use mach_RPC_CHECK to check for
    vm_set_size_limit and vm_get_size_limit RPCs in gnumach.defs.
  * sysdeps/mach/configure: regenerate file.

Use vm_get_size_limit to initialize RLIMIT_AS

  * hurd/hurdrlimit.c(init_rlimit): use vm_get_size_limit to initialize
    RLIMIT_AS entry of the _hurd_rlimits array.

Notify the kernel of the new VM size limits

  * sysdeps/mach/hurd/setrlimit.c: use the vm_set_size_limit RPC,
    if available, to notify the kernel of the new limits. Retry RPC
    calls if they were interrupted by a signal.
Message-ID: <03fb90a795b354a366ee73f56f73e6ad22a86cda.1755220108.git.dnietoc@gmail.com>
config.h.in
hurd/hurdrlimit.c
sysdeps/mach/configure [changed mode: 0644->0755]
sysdeps/mach/configure.ac
sysdeps/mach/hurd/setrlimit.c