Message ID | 20220510191155.1998575-2-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show |
Series | Linux: Fix posix_spawn when user with time namespaces | expand |
Although the BZ #29115 fix might result in WONTFIX, this change is unrelated. I will commit this shortly if no one opposes it. On 10/05/2022 16:11, Adhemerval Zanella wrote: > It was added in commit 769071ac9f20b6a447410c7eaa55d1a5233ef40c. > --- > sysdeps/unix/sysv/linux/bits/sched.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h > index f13c569863..d79359eaeb 100644 > --- a/sysdeps/unix/sysv/linux/bits/sched.h > +++ b/sysdeps/unix/sysv/linux/bits/sched.h > @@ -71,6 +71,10 @@ > # define CLONE_NEWPID 0x20000000 /* New pid namespace. */ > # define CLONE_NEWNET 0x40000000 /* New network namespace. */ > # define CLONE_IO 0x80000000 /* Clone I/O context. */ > + > +/* cloning flags intersect with CSIGNAL so can be used only with unshare and > + clone3 syscalls. */ > +#define CLONE_NEWTIME 0x00000080 /* New time namespace */ > #endif > > #include <bits/types/struct_sched_param.h>
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index f13c569863..d79359eaeb 100644 --- a/sysdeps/unix/sysv/linux/bits/sched.h +++ b/sysdeps/unix/sysv/linux/bits/sched.h @@ -71,6 +71,10 @@ # define CLONE_NEWPID 0x20000000 /* New pid namespace. */ # define CLONE_NEWNET 0x40000000 /* New network namespace. */ # define CLONE_IO 0x80000000 /* Clone I/O context. */ + +/* cloning flags intersect with CSIGNAL so can be used only with unshare and + clone3 syscalls. */ +#define CLONE_NEWTIME 0x00000080 /* New time namespace */ #endif #include <bits/types/struct_sched_param.h>