Insecure PHP installation?

2003-03-10 Thread dslb
Hi all I know PHP is not in the base system, but I thought I could ask here anyway. I have installed PHP on my FreeBSD 4.7 computer and did a "find / -perm +0002". I could see that /usr/local/bin/pear is a script and world writable, isn't that a little dangerous? br socketd ps: Please CC to me a

Assembly and ELF

2002-11-21 Thread dslb
Hi FreeBSD lovers I can't remember if I'm on the list, so please CC to me. I used to program in C++ and assembly under windows, but now I only run FreeBSD (4.7). I have to get used to not playing with BIOS interrupts and direct hardware accessing, but I'll live. My questions are: 1. Can you guide

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 17:54 [EMAIL PROTECTED] wrote: > I can't remember if I'm on the list, so please CC to me. Just found out I'm on the list :-) br socketd To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:00 Bruce M Simpson wrote: > > One big question I'd have is, why are you using assembly language? 1. I like assembly 2. FreeBSD will still need assembly programms 3. To learn more about the FreeBSD kernel (internals) I do however program in C++, so if you are worried about portabi

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:33 Chuck Tuffli wrote: > There is > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86.html > > I'm not sure if this is the same as the above link I'll read it, thanks :-) br socketd To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebs

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:33 Chuck Tuffli wrote: > > My questions are: > > 1. Can you guide my to some good info on asm programming under > FreeBSD (I > > have read www.int80h.org/bsdasm) > > There is > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86.html > > I'm not sure if this

Re: Assembly and ELF

2002-11-22 Thread dslb
OK, I have read some more now and will ask a few questions. If I am asking the wrong place, please say so. 1. If have found part of what I am looking for: http://www.cs.ucdavis.edu/~haungs/paper/node14.html#sections But I need more info (in depth info). Is .bss = the heap? 2. I would like more inf

Re: Assembly and ELF

2002-11-25 Thread dslb
On 2002.11.23 02:13 Jonah Sherman wrote: > I suggest you read "The Design and Implementation of the 4.4BSD > Operating System". It will answer most if not all of your > questions. Funny you should mention that. I ordered that book thursday, It will be here within 6-8 days :-) br socketd To Uns

accept()

2002-12-06 Thread dslb
Hi all When using accept() with: int sd_client = accept(socket_descriptor, (sockaddr *)&client, (socklen_t *) sizeof(client)); Accept return -1 and 14 in errno, but when I use: socklen_t alen; int sd_client = accept(socket_descriptor, (sockaddr *)&client, &alen); It works fine. Why can't you us

Re: accept()

2002-12-06 Thread dslb
On 2002.12.06 20:55 Mike Hunter wrote: > You have to use a variable because accept may write to it (?). > > From the man page: > > The addrlen is a value-result parameter; it should initially contain > the > amount of space pointed to by addr; on return it will contain the > actual > length (in by

The stack and heap

2002-12-13 Thread dslb
Hi all I just have a few question about execution of code on the stack or heap. It is possible in FreeBSD right? But why does the stack and heap need to be executable? I have read about mprotect(), but can you change the stack and heap permissions with that? If yes how? (the man page tells you al

Re: The stack and heap

2002-12-14 Thread dslb
>-- Original Message -- >Date: Fri, 13 Dec 2002 08:38:41 -0800 >From: Terry Lambert <[EMAIL PROTECTED]> >OpenBSD recently changed this, after a lot of work. They only >addressed the stack, not the heap. I don't know what they did >about Swing or Franz LISP; maybe they just don't work on OpenBSD