<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/pidfd/pidfd_getfd_test.c, branch linux-rolling-lts</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-02-07T14:48:31Z</updated>
<entry>
<title>selftests: add ESRCH tests for pidfd_getfd()</title>
<updated>2024-02-07T14:48:31Z</updated>
<author>
<name>Tycho Andersen</name>
</author>
<published>2024-02-07T09:19:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0ece18e994144b7daa025b68ead97de26a2df1f'/>
<id>urn:sha1:f0ece18e994144b7daa025b68ead97de26a2df1f</id>
<content type='text'>
Ensure that pidfd_getfd() reports -ESRCH if the task is already exiting.

Signed-off-by: Tycho Andersen &lt;tandersen@netflix.com&gt;
Link: https://lore.kernel.org/r/20240206192357.81942-1-tycho@tycho.pizza
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: pidfd: skip test on kcmp() ENOSYS</title>
<updated>2020-10-27T23:01:45Z</updated>
<author>
<name>Tommi Rantala</name>
</author>
<published>2020-10-08T12:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5ec9fe5be5e02e7db9e79aaa9a1ea7a3419d0b5'/>
<id>urn:sha1:b5ec9fe5be5e02e7db9e79aaa9a1ea7a3419d0b5</id>
<content type='text'>
Skip test if kcmp() is not available, for example if kernel is compiled
without CONFIG_CHECKPOINT_RESTORE=y.

Signed-off-by: Tommi Rantala &lt;tommi.t.rantala@nokia.com&gt;
Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: Remove unneeded selftest API headers</title>
<updated>2020-07-06T21:59:07Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2020-06-22T18:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ce79097a8f8391fdec835d1deaa112fba4b18362'/>
<id>urn:sha1:ce79097a8f8391fdec835d1deaa112fba4b18362</id>
<content type='text'>
Remove unused includes of the kselftest.h header.

Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tests: test for setns() EINVAL regression</title>
<updated>2020-06-16T22:48:54Z</updated>
<author>
<name>Christian Brauner</name>
</author>
<published>2020-06-16T22:48:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86f56395feb2b106b125c47e72192e37da5dd088'/>
<id>urn:sha1:86f56395feb2b106b125c47e72192e37da5dd088</id>
<content type='text'>
Verify that setns() reports EINVAL when an fd is passed that refers to an
open file but the file is not a file descriptor useable to interact with
namespaces.

Cc: Jan Stancek &lt;jstancek@redhat.com&gt;
Cc: Cyril Hrubis &lt;chrubis@suse.cz&gt;
Link: https://lore.kernel.org/lkml/20200615085836.GR12456@shao2-debian
Signed-off-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;
</content>
</entry>
<entry>
<title>test: Add test for pidfd getfd</title>
<updated>2020-01-13T20:49:54Z</updated>
<author>
<name>Sargun Dhillon</name>
</author>
<published>2020-01-07T17:59:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=873dfd7881d1d8840bf69c8c164f5323db7417fa'/>
<id>urn:sha1:873dfd7881d1d8840bf69c8c164f5323db7417fa</id>
<content type='text'>
The following tests:
  * Fetch FD, and then compare via kcmp
  * Make sure getfd can be blocked by blocking ptrace_may_access
  * Making sure fetching bad FDs fails
  * Make sure trying to set flags to non-zero results in an EINVAL

Signed-off-by: Sargun Dhillon &lt;sargun@sargun.me&gt;
Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;
Link: https://lore.kernel.org/r/20200107175927.4558-5-sargun@sargun.me
Signed-off-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;
</content>
</entry>
</feed>
