sharedmem in jail.

Ivan Kolosovskiy agava-develop at yandex.ru
Mon Feb 27 01:32:54 PST 2006


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?


More information about the freebsd-stable mailing list