glibc/sysdeps/unix/sysv/linux/hppa
Adhemerval Zanella Netto ce2bfb8569 linux: Add posix_spawnattr_{get, set}cgroup_np (BZ 26371)
These functions allow to posix_spawn and posix_spawnp to use
CLONE_INTO_CGROUP with clone3, allowing the child process to
be created in a different cgroup version 2.  These are GNU
extensions that are available only for Linux, and also only
for the architectures that implement clone3 wrapper
(HAVE_CLONE3_WRAPPER).

To create a process on a different cgroupv2, one can use the:

  posix_spawnattr_t attr;
  posix_spawnattr_init (&attr);
  posix_spawnattr_setflags (&attr, POSIX_SPAWN_SETCGROUP);
  posix_spawnattr_setcgroup_np (&attr, cgroup);
  posix_spawn (...)

Similar to other posix_spawn flags, POSIX_SPAWN_SETCGROUP control
whether the cgroup file descriptor will be used or not with
clone3.

There is no fallback if either clone3 does not support the flag
or if the architecture does not provide the clone3 wrapper, in
this case posix_spawn returns EOPNOTSUPP.

Checked on x86_64-linux-gnu.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2023-09-05 13:08:48 -03:00
..
bits Remove MAP_VARIABLE from hppa bits/mman.h 2023-06-05 14:35:25 +00:00
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
____longjmp_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
arch-syscall.h
atomic-machine.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
c++-types.data
clone.S Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
errlist-compat-data.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fanotify_mark.c
getcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies
kernel_stat.h
kernel-features.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ld.abilist
libanl.abilist
libBrokenLocale.abilist
libc_malloc_debug.abilist
libc.abilist linux: Add posix_spawnattr_{get, set}cgroup_np (BZ 26371) 2023-09-05 13:08:48 -03:00
libcrypt.abilist
libdl.abilist
libm.abilist math: Remove the error handling wrapper from fmod and fmodf 2023-04-03 16:45:27 -03:00
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
makecontext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile hppa: xfail debug/tst-ssp-1 when have-ssp is yes (gcc-12 and later) 2023-07-01 18:26:18 +00:00
prlimit64.c
setcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shlib-versions
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
single-thread.h Replace __libc_multiple_threads with __libc_single_threaded 2022-07-05 10:14:47 -03:00
socket-constants-time64.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
struct_kernel_msqid64_ds.h
struct_kernel_semid64_ds.h
struct_kernel_shmid64_ds.h
swapcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscalls.list
sysdep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysdep.h Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
time64-compat.h
ucontext_i.sym
Versions Linux: Move wordsize-32 Version to default 2023-02-20 10:19:25 -03:00
xstatver.h Linux: make generic xstatver.h the default one 2022-12-07 14:40:36 -03:00