Re: socket.makefile & AF_UNIX

2004-12-10 Thread Jamie Saker
>If you're trying to create a Unix socket then mknod() isn't what >you need.  You probably want to create a socket and bind() it to >the log file: >filename = 'snort_alert' > s = socket(AF_UNIX, SOCK_DGRAM) > s.bind(filename) Interesting - I tried this with a local test_log and it worked, creatin

Re: socket.makefile & AF_UNIX

2004-12-10 Thread Michael Fuhr
Jamie Saker <[EMAIL PROTECTED]> writes: > In the makefile operation on socket (pydoc socket.socket.makefile... using > AF_UNIX, allowing you to create a file object to correspond to a socket) I've > got an sample program (goal: open up unix file socket object for snort's > alert_unixsock output

socket.makefile & AF_UNIX

2004-12-10 Thread Jamie Saker
I think I'm overlooking something assumed in socket's makefile method. Googling several hours and digging thru the python reference didn't help - I think I'm overlooking an assumption between Python and UNIX socket objects neither is explicitely discussing. I think my mknod In the makefile ope