Skip to content
Commit 2def297e authored by Christian Kellner's avatar Christian Kellner Committed by Christian Brauner
Browse files

pidfd: add tests for NSpid info in fdinfo



Add a test that checks that if pid namespaces are configured the fdinfo
file of a pidfd contains an NSpid: entry containing the process id in
the current and additionally all nested namespaces. In the case that
a pidfd is from a pid namespace not in the same namespace hierarchy as
the process accessing the fdinfo file, ensure the 'NSpid' shows 0 for
that pidfd, analogous to the 'Pid' entry.

Signed-off-by: default avatarChristian Kellner <christian@kellner.me>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191014162034.2185-2-ckellner@redhat.com
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 15d42eb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment