FreeBSD 6.0-p4. Sharedmem in jail doesnot works. I got "Function not implemented". Source code: #include <machine/param.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> int main() { unsigned int segment = shmget( IPC_PRIVATE, 10000 , SHM_R | SHM_W ); perror(""); printf( "Got segment: %d\n", segment ); return 1; } in jail: $ ./a.out Function not implemented Got segment: -1 not in jail: # ./a.out Unknown error: 0 Got segment: 196609 what's wrong?
On Mon, Feb 27, 2006 at 12:32:33PM +0300, Ivan Kolosovskiy wrote:> FreeBSD 6.0-p4. Sharedmem in jail doesnot works. I got "Function not > implemented".It's disabled by default because it's an information disclosure risk. The manpage tells you how to enable it. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060227/834ffe1d/attachment.bin