Skip to contentSkip to conversation

unix socket fd sending questions

DISCUSSION Kevin Fox 1 participant 1 message Jun 16, 2009

lore
Share & tools
lore

Kevin Fox

author
#0 lore raw

Say you were to open a directory handle in process A and pass it through a unix socket to process B.

Process A and B are owned by two different users and are running in two separate mount namespaces.

If you were to readdir in process B on the descriptor would you see process A's view of the world? I'm guessing probably so.

If you were to walk the tree pointed to by the descriptor, would you see A's view of the world? I'm guessing not if you use open/readdir, but what about openat and the like?

Thanks,
Kevin Fox