From: Serge Hallyn <serge.hallyn-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
To: Rob van der Hoeven <robvanderhoeven-nv30jWqA7Mk@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: Pass a fd to program in another mount namespace?
Date: Tue, 21 Jan 2014 17:07:08 -0600 [thread overview]
Message-ID: <20140121230708.GA2342@ac100> (raw)
In-Reply-To: <1390314790.19789.79.camel-fUTaybRSAecurNyw8EiOWGKXln2oN1SQ@public.gmane.org>
Quoting Rob van der Hoeven (robvanderhoeven-nv30jWqA7Mk@public.gmane.org):
> 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.
Yes, it is possible. Your email makes it sound like you've tried
and it didn't work for you, in which case a short test case showing
what fails might be useful here.
-serge
next prev parent reply other threads:[~2014-01-21 23:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 14:33 Pass a fd to program in another mount namespace? Rob van der Hoeven
[not found] ` <1390314790.19789.79.camel-fUTaybRSAecurNyw8EiOWGKXln2oN1SQ@public.gmane.org>
2014-01-21 23:07 ` Serge Hallyn [this message]
2014-01-22 13:40 ` Rob van der Hoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140121230708.GA2342@ac100 \
--to=serge.hallyn-gewih/nmzzlqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=robvanderhoeven-nv30jWqA7Mk@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox