Hi, does someone know how to create a socket in kernelspace and how to handle connections to it? I want to create a socket in the PF_LOCAL namespace called /tmp/guestsocket. I know that I have to do this in a seperate kernel thread and I managed to to create a kernel thread using kernel_thread. All examples I could find were using the PF_INET namespace, but I want to use the PF_LOCAL namespace. The problem I have is: struct socket *guestsock; error = sock_create(PF_UNIX, SOCK_DGRAM, 0, &guestsock); if (error<0) { perror("socket thread: can't create guest socket"); } always gives: socket thread: can't create guest socket: Operation not permitted Kernel panic: Segfault with no mm mfg, Patrick "Petschge" Kilian -- Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .. :w :q :wq :wq! ^d X^? exit X Q ^C ^c ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^H man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d man help ^C exit ?Quit ?q CtrlShftDel "Hey, what does this button d..." -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/