summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
AgeCommit message (Collapse)Author
2007-10-29MALLOC/FREE -> malloc/freeCharles Longeau
replace an hard coded value with M_WAITOK ok krw@
2006-11-14grammar, spelling, and style fixes from bret lambert;Jason McIntyre
kern_descrip.c change ok deraadt
2005-11-12ansi. No binary change.Jonathan Gray
2005-08-01 - We shouldn't allocate MAXPATHLEN from the stack.Artur Grabowski
- Don't copy the pathbuf into kernel space unless we're systracing. deraadt@ ok
2004-07-07fix an issue when scripts are exec'd under systrace wheremarius eriksen
the argv[0] would be normalized, and hence break scripts that depend on how they were called. this fixes an issue in the ports builds. ok provos@ deraadt@; lots of testing during hackathon sturm@ naddy@
2004-06-23a few fixes to systracemarius eriksen
- add an exec message so that whenever a set-uid/gid process exec's a new image which we may control, the exec does not go by unnoticed. - take special care to check for P_SUGIDEXEC as well as P_SUGID, corresponding to the same changes that were made in the ptrace code a while ago ok niels@, sturm@; thanks to naddy for testing
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2003-05-03string fixes; tedu okTheo de Raadt
2002-09-18We can jump to the fail: label before shellargp is initialized.Artur Grabowski
Make sure that we don't free random memory when that happens. From <j at pureftpd.org> deraadt@ ok
2002-08-22Change the vnode locking in exec to not keep the vnode locked almost allArtur Grabowski
the time. This could lead to problems when a process wants to do an exec on the same vnode it's being run from and needs to copy in arguments from an uncached page in the data segment. When that happens uvm detects a vnode deadlock and returns an error causing execve() return EFAULT. This fixes the regress test in regress/sys/kern/exec_self Also, initialize scriptvp early in exec_script because it could be used uninitialized in a failure case.
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-10-26 - every new fd created by falloc() is marked as larval and should not be usedArtur Grabowski
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
2001-06-22KNFTheo de Raadt
2001-05-14ifdef FOO inside an ifdef FOO feels like overkill.Artur Grabowski
2000-09-26Don't use MALLOC/FREE on variable sized allocations.Artur Grabowski
2000-02-01remove superflous declaration of vnops, it's now in <sys/file.h>assar
1999-10-18force FDSCRIPTS after include files are pulled inTheo de Raadt
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1996-10-20Make it build with -Wparentheses.dm
1996-06-12warning: variable might be used uninitialized -- sucksTheo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt