glibc/sysdeps/unix/sysv/linux/arm
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
..
be linux: Add posix_spawnattr_{get, set}cgroup_np (BZ 26371) 2023-09-05 13:08:48 -03:00
bits Add Arm HWCAP values from Linux 6.2 to bits/hwcap.h 2023-02-28 00:07:59 +00:00
le linux: Add posix_spawnattr_{get, set}cgroup_np (BZ 26371) 2023-09-05 13:08:48 -03:00
sys Add PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG etc. from Linux 6.4 to sys/ptrace.h 2023-08-08 14:38:22 +00:00
Implies
Makefile
Versions Linux: Move wordsize-32 Version to default 2023-02-20 10:19:25 -03:00
____longjmp_chk.S
aeabi_read_tp.S
arch-syscall.h
arm-features.h
atomic-machine.h
c++-types.data
clone.S
clone3.S arm: Add the clone3 wrapper 2023-09-05 10:15:48 -03:00
dl-cache.h
dl-machine.h
dl-procinfo.c Add Arm HWCAP values from Linux 6.2 to bits/hwcap.h 2023-02-28 00:07:59 +00:00
dl-procinfo.h Add Arm HWCAP values from Linux 6.2 to bits/hwcap.h 2023-02-28 00:07:59 +00:00
fixup-asm-unistd.h
getcontext.S
ioperm.c
kernel-features.h
kernel_stat.h
ldsodefs.h
libc-do-syscall.S
libc_sigaction.c
localplt.data
makecontext.c
profil-counter.h
readelflib.c
setcontext.S
shlib-versions
sigcontextinfo.h
sigrestorer.S
single-thread.h
swapcontext.S
syscall.S
syscalls.list
sysdep.S
sysdep.h arm: Add the clone3 wrapper 2023-09-05 10:15:48 -03:00
time64-compat.h
tls.h
ucontext_i.sym
vfork.S
xstatver.h