Re: [PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-16 Thread Shuah Khan
On 10/11/24 02:20, Lorenzo Stoakes wrote: On Thu, Oct 10, 2024 at 05:16:22PM -0600, Shuah Khan wrote: On 10/10/24 12:15, Lorenzo Stoakes wrote: Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() a

Re: [PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-11 Thread Lorenzo Stoakes
On Thu, Oct 10, 2024 at 05:16:22PM -0600, Shuah Khan wrote: > On 10/10/24 12:15, Lorenzo Stoakes wrote: > > Add tests to assert that PIDFD_SELF_* correctly refers to the current > > thread and process. > > > > This is only practically meaningful to pidfd_send_signal() and > > pidfd_getfd(), but als

Re: [PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-10 Thread Shuah Khan
On 10/10/24 12:15, Lorenzo Stoakes wrote: Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() and pidfd_getfd(), but also explicitly test that we disallow this feature for setns() where it would make

[PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-10 Thread Lorenzo Stoakes
Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() and pidfd_getfd(), but also explicitly test that we disallow this feature for setns() where it would make no sense. We cannot reasonably wait on our