Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-15 Thread Shuah Khan
On 10/15/24 03:00, zhouyuhang wrote: [snip] for clarity. Why is this necessary? This is defined in linux/capability.h. Sorry for not noticing this before. This is to be compatible with some older versions of linux/capability.h that do not define this macro. +int capget(cap_user_header

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-15 Thread zhouyuhang
在 2024/10/15 06:38, Shuah Khan 写道: On 10/12/24 02:28, zhouyuhang wrote: On 2024/10/11 22:21, Shuah Khan wrote: On 10/11/24 00:59, zhouyuhang wrote: On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t o

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-14 Thread Shuah Khan
On 10/12/24 02:28, zhouyuhang wrote: On 2024/10/11 22:21, Shuah Khan wrote: On 10/11/24 00:59, zhouyuhang wrote: On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-12 Thread zhouyuhang
On 2024/10/11 22:21, Shuah Khan wrote: On 10/11/24 00:59, zhouyuhang wrote: On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-11 Thread Shuah Khan
On 10/11/24 00:59, zhouyuhang wrote: On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the m

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread zhouyuhang
On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread Shuah Khan
On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks the assumption made in the "struct libcap"

[PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread zhouyuhang
From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks the assumption made in the "struct libcap" definition in clone3_cap_checkpoint_re