Re: [zones-discuss] ?: named pipes between zones using shared filesystem
Dan Price wrote On 12/11/06 16:28,: On Mon 11 Dec 2006 at 04:14PM, Jeff Victor wrote: Mike, do you have a working code snippet that I can test? I have a 6/06 system, a Nevada build50 system, and can create others. I could write the code myself, but if you already have a tested sample... Isn't this not working because named pipes are implemented not as a filesystem builtin but using namefs? I would assume that you'd need to work out how to get the namefs mounts right. -dp Thanks, Dan. I did google across the following URL, and tried the code. http://developers.sun.com/solaris/articles/named_pipes.html The client never returns, it just hangs. I haven't been able to find much on namefs, but since the named pipe does appear to be implemented using such, it looks to not be an IPC between zones (my test was between global and one non-global). Thanks Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] ?: named pipes between zones using shared filesystem
I just tried an experiment with "mknod -p". Named pipes are not visible across zones using that method. If you create a named pipe in one zone, it is not visible in other zones. This includes the global zone. That experiment was done on Solaris Nevada build 50. Steffen Weiberle wrote: Thanks, Mike. I don't have any code to try this out with, and even if I did, not miss some cases. To the general audience: What is the expected result? What privilege(s) prevents a named pipe from working? Thanks Steffen Ellis, Mike wrote On 12/11/06 08:25,: I tried this about a year ago, thinking I was being clever... Didn't work :-( Let me know if you have a different experience. -- MikeE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steffen Weiberle Sent: Monday, December 11, 2006 7:27 AM To: zones-discuss@opensolaris.org Subject: [zones-discuss] ?: named pipes between zones using shared filesystem I have no reason to believe the following will not work, but I would like to confirm If a file system is shared between two zones (via lofs), can named pipes be used to communicated between the two zones? If the filesystem is mounted read/write in one and read-only in the other, will this communication be limited to sending informaton from the first to the second? Based on what I know of the security model, nothing in zones should prevent this. Thanks Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org -- -- Jeff VICTOR Sun Microsystemsjeff.victor @ sun.com OS AmbassadorSr. Technical Specialist Solaris 10 Zones FAQ:http://www.opensolaris.org/os/community/zones/faq -- ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] ?: named pipes between zones using shared filesystem
On Mon 11 Dec 2006 at 04:14PM, Jeff Victor wrote: > Mike, do you have a working code snippet that I can test? I have a 6/06 > system, a Nevada build50 system, and can create others. I could write the > code myself, but if you already have a tested sample... Isn't this not working because named pipes are implemented not as a filesystem builtin but using namefs? I would assume that you'd need to work out how to get the namefs mounts right. -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] ?: named pipes between zones using shared filesystem
Mike, do you have a working code snippet that I can test? I have a 6/06 system, a Nevada build50 system, and can create others. I could write the code myself, but if you already have a tested sample... Ellis, Mike wrote: I tried this about a year ago, thinking I was being clever... Didn't work :-( Let me know if you have a different experience. -- MikeE -Original Message- From: [EMAIL PROTECTED] Sent: Monday, December 11, 2006 7:27 AM To: zones-discuss@opensolaris.org Subject: [zones-discuss] ?: named pipes between zones using shared filesystem I have no reason to believe the following will not work, but I would like to confirm If a file system is shared between two zones (via lofs), can named pipes be used to communicated between the two zones? If the filesystem is mounted read/write in one and read-only in the other, will this communication be limited to sending informaton from the first to the second? Based on what I know of the security model, nothing in zones should prevent this. Thanks Steffen -- -- Jeff VICTOR Sun Microsystemsjeff.victor @ sun.com OS AmbassadorSr. Technical Specialist Solaris 10 Zones FAQ:http://www.opensolaris.org/os/community/zones/faq -- ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] ?: named pipes between zones using shared filesystem
Thanks, Mike. I don't have any code to try this out with, and even if I did, not miss some cases. To the general audience: What is the expected result? What privilege(s) prevents a named pipe from working? Thanks Steffen Ellis, Mike wrote On 12/11/06 08:25,: I tried this about a year ago, thinking I was being clever... Didn't work :-( Let me know if you have a different experience. -- MikeE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steffen Weiberle Sent: Monday, December 11, 2006 7:27 AM To: zones-discuss@opensolaris.org Subject: [zones-discuss] ?: named pipes between zones using shared filesystem I have no reason to believe the following will not work, but I would like to confirm If a file system is shared between two zones (via lofs), can named pipes be used to communicated between the two zones? If the filesystem is mounted read/write in one and read-only in the other, will this communication be limited to sending informaton from the first to the second? Based on what I know of the security model, nothing in zones should prevent this. Thanks Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
RE: [zones-discuss] ?: named pipes between zones using shared filesystem
I tried this about a year ago, thinking I was being clever... Didn't work :-( Let me know if you have a different experience. -- MikeE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steffen Weiberle Sent: Monday, December 11, 2006 7:27 AM To: zones-discuss@opensolaris.org Subject: [zones-discuss] ?: named pipes between zones using shared filesystem I have no reason to believe the following will not work, but I would like to confirm If a file system is shared between two zones (via lofs), can named pipes be used to communicated between the two zones? If the filesystem is mounted read/write in one and read-only in the other, will this communication be limited to sending informaton from the first to the second? Based on what I know of the security model, nothing in zones should prevent this. Thanks Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org