glibc/sysdeps/unix/sysv/linux/ia64
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 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00: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
____longjmp_chk.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
__ia64_longjmp.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
__sigstack_longjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
__start_context.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
arch-syscall.h Update syscall lists for Linux 5.17 2022-03-23 17:11:56 +00:00
brk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
bsd-_setjmp.S
bsd-setjmp.S
c++-types.data IA64: Consolidate nptl/ subdirectories under linux/... 2014-08-04 10:00:52 -04:00
clone2.S Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
clone.S
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac Assume that accept4 is always available and works 2017-04-19 07:44:48 +02:00
dl-cache.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-sysdep.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getclktck.c
getcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
ioperm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
kernel-features.h linux: Define __ASSUME_CLONE3 to 0 for alpha, ia64, nios2, sh, and sparc 2023-09-05 10:15:48 -03:00
ld.abilist Linux: Use ptrdiff_t for __rseq_offset 2022-02-02 22:37:20 +01:00
ldd-rewrite.sed
libanl.abilist resolv: Move libanl into libc (if libpthread is in libc) 2021-07-02 11:45:00 +02:00
libBrokenLocale.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libc_malloc_debug.abilist Move malloc_{g,s}et_state to libc_malloc_debug 2021-07-22 18:38:10 +05:30
libc.abilist linux: Add posix_spawnattr_{get, set}cgroup_np (BZ 26371) 2023-09-05 13:08:48 -03:00
libcrypt.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libdl.abilist dlfcn: Move dlopen into libc 2021-06-03 08:26:04 +02:00
libm.abilist Add fmaximum, fminimum functions 2021-09-28 23:31:35 +00:00
libnsl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libpthread.abilist nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
libresolv.abilist resolv: Move res_query functions into libc 2021-07-19 07:56:57 +02:00
librt.abilist Linux: Move timer_settime, __timer_settime64 from librt to libc 2021-06-28 09:51:01 +02:00
libthread_db.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libutil.abilist login: Move libutil into libc 2021-06-30 08:43:37 +02:00
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 Default to --with-default-link=no (bug 25812) 2022-04-22 10:59:03 +02:00
mmap_internal.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pointer_guard.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
readelflib.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rt-sysdep.S
setcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shlib-versions Move malloc hooks into a compat DSO 2021-07-22 18:37:59 +05:30
sigaltstack-offsets.sym
sigcontext-offsets.sym Fix mcontext_t sigcontext namespace (bug 21457). 2017-08-30 22:02:04 +00:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
startup.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
swapcontext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscall.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscalls.list linux: Consolidate Linux setsockopt implementation 2021-07-06 11:45:35 -03:00
sysconf-sigstksz.h 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
sysdep.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_t_was_int_compat.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-setcontext2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-setcontext4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ucontext_i.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
unwind_longjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
unwind-dw2-fde.c
Versions Linux: Move timer_settime, __timer_settime64 from librt to libc 2021-06-28 09:51:01 +02:00
vfork.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wordexp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstatver.h Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00