Generally, you can create UNIX domain sockets in the global zone, and if you 
put the path to them in a filesystem that is mounted inside the local zone, 
then that local zone will be able to attach.  This is a kind of way to enable 
communication between the GZ and the local zone.

Note that generally zones don’t share filesystems, so typically you can’t use 
this to get between to distinct local zones.  There may be some tricks to make 
even that work, but to be honest I’ve not tried — it seems like it would be a 
bad idea.

(One weird and random idea I just had — could you do a socketpair in the GZ, 
and then exec from two separate forked children, into the zone.  I’m not sure 
that there is a public API for exec’ing into the context of a specific zone 
though.)

        - Garrett

> On Feb 10, 2015, at 5:10 PM, Ian Collins via smartos-discuss 
> <[email protected]> wrote:
> 
> Marc Phillips via smartos-discuss wrote:
>> I'm tasked with doing the following:
>> 
>> Expose /some/software/sockets UDS to each of the non-global zones
>> 
>> I have no idea how to do that or what that means, exactly, in the context of 
>> SmartOS.
> 
> http://en.wikipedia.org/wiki/UDS
> 
> :)
> 
> -- 
> Ian.
> 
> 
> 
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184463/22103350-51080293
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to