[PATCH 5/5] linux: Implement unshare in C (BZ 34917)
Florian Weimer
fweimer@redhat.com
Fri Nov 6 09:39:01 GMT 2026
* Adhemerval Zanella:
> The kernel declares the unshare flags as unsigned long and fails with
> EINVAL if any unknown flag is set, including bits 32 to 63.
>
> Implement unshare in C, where INLINE_SYSCALL_CALL extends the argument
> to the full register on these ABIs.
>
> Checked on x86_64-linux-gnu.
> ---
> sysdeps/unix/sysv/linux/Makefile | 1 +
> sysdeps/unix/sysv/linux/syscalls.list | 1 -
> .../unix/sysv/linux/tst-syscall-upper-bits.c | 15 +++++++++++
> sysdeps/unix/sysv/linux/unshare.c | 26 +++++++++++++++++++
> 4 files changed, 42 insertions(+), 1 deletion(-)
> create mode 100644 sysdeps/unix/sysv/linux/unshare.c
Okay.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks,
Florian
More information about the Libc-alpha
mailing list