Pass a fd to program in another mount namespace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was wondering if it is possible to send a file descriptor to a program
running in another mount namespace. Sendmsg/recvmsg can pass fd's in the
ancillary data and this works great until my program switches to another
mount namespace using:

unshare(CLONE_NEWNS)
pivot_root(".", "./us_rootfs")

If there is a way to pass descriptors across mount namespaces then it
would greatly benefit my program so I hope this is possible. 

Best regards,
Rob van der Hoeven.
http://freedomboxblog.nl


_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers




[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux