# Re: \[PATCH 0/5 RFC\] Add an interface to discover relationships between namespaces

- From: W. Trevor King \<hidden\>
- Date: 2016-07-26 18:34:29 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2016/07/109861
- Thread: https://ratatoskr.run/linux-api/2016/07/109866/t.md

```text
On Tue, Jul 26, 2016 at 11:25:24AM -0700, Andrew Vagin wrote:
> Sure. If a process wants to compare two namespaces, it needs to get file
> descriptors for them (open /proc/PID/ns/XXX, use new ioctl-s, find a
> process which has them),
> and then it calls kcmp(pid1, pid2, KCMP_NSFD, ns_fd1, ns_fd2)

If you use the new ioctl-s to get ns_fd2, do you walk your local /proc
to find pid2?

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-api/2016/07/109861/attachment/0) (application/pgp-signature, 819 bytes)
