find process on other end of pipe

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

find process on other end of pipe

Maximilian Pichler
fstat shows address 0x0 for *all* pipes:

maxim   cat        44924    1 pipe 0x0 state:
[...]

How can one find out which process is on the other end of a pipe?

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: find process on other end of pipe

Theo de Raadt
> fstat shows address 0x0 for *all* pipes:
>
> maxim   cat        44924    1 pipe 0x0 state:
> [...]
>
> How can one find out which process is on the other end of a pipe?

Run it as root.

As a regular user, you have no right to see kernel pointer values.