History log of /netbsd-src/sys/kern/exec_script.c (Results 51 – 75 of 85)
Revision Date Author Comments
# 960df3c8 28-Jun-2003 darrenr <darrenr@NetBSD.org>

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various fu

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

show more ...


# f265a4a4 16-May-2003 itojun <itojun@NetBSD.org>

use strlcpy. [fixed off-by-one in subr_prop.c]


# a6e07c4e 02-Apr-2003 perry <perry@NetBSD.org>

grow #! line length -- patch from cgd, fixes PR kern/20112 from Todd Vierling


# 29b7b424 29-Oct-2002 blymn <blymn@NetBSD.org>

Added support for fingerprinted executables aka verified exec


# 0f09ed48 27-Sep-2002 provos <provos@NetBSD.org>

remove trailing \n in panic(). approved perry.


# adc783d5 12-Nov-2001 lukem <lukem@NetBSD.org>

add RCSIDs


# 7660fd85 15-Jun-2001 thorpej <thorpej@NetBSD.org>

In check_exec(), don't bother checking P_TRACED along with
MNT_NOSUID, just check MNT_NOSUID to clear the S{U,G}ID bits
in the attributes for the vnode we're about to exec.

We now check P_TRACED rig

In check_exec(), don't bother checking P_TRACED along with
MNT_NOSUID, just check MNT_NOSUID to clear the S{U,G}ID bits
in the attributes for the vnode we're about to exec.

We now check P_TRACED right before we would actually perform
the s{u,g}id function in the exec code.

This closes a race condition between exec of a setuid binary
and ptrace(2).

show more ...


# 80cc38a1 14-Jun-2001 thorpej <thorpej@NetBSD.org>

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads. What we do is stick descriptors in the table,

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads. What we do is stick descriptors in the table, but
mark them as "larval". This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again. When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

show more ...


# baae0324 21-Nov-2000 jdolecek <jdolecek@NetBSD.org>

restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
provide single struct emul per emulation
*

restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
provide single struct emul per emulation
* elf:
- kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
per emulation and contains pointer to respective probe function
- interp is allocated via MALLOC() rather than on stack
- elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
part of appropriate execsw[] entry
* constify couple of structures

show more ...


# 7cc27a88 03-Aug-2000 thorpej <thorpej@NetBSD.org>

Convert namei pathname buffer allocation to use the pool allocator.


# cd32ace8 01-Aug-2000 thorpej <thorpej@NetBSD.org>

ANSI'ify.


# 32aa199c 27-Jun-2000 mrg <mrg@NetBSD.org>

remove include of <vm/vm.h>


# e4b59906 01-Feb-2000 assar <assar@NetBSD.org>

(exec_script_makecmds): remove declaration of vnops, now in
<sys/file.h>


# 4c9c896c 07-May-1999 tv <tv@NetBSD.org>

FILE_UNUSE wasn't updated in the FDSCRIPTS block.


# e3669c33 05-May-1999 thorpej <thorpej@NetBSD.org>

Add "use counting" to file entries. When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to

Add "use counting" to file entries. When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

show more ...


# 0078fc50 26-Feb-1999 wrstuden <wrstuden@NetBSD.org>

Modify VOP_CLOSE vnode op to always take a locked vnode. Change vn_close
to pass down a locked node. Modify union_copyup() to call VOP_CLOSE
locked nodes.

Also fix a bug in union_copyup() where a lo

Modify VOP_CLOSE vnode op to always take a locked vnode. Change vn_close
to pass down a locked node. Modify union_copyup() to call VOP_CLOSE
locked nodes.

Also fix a bug in union_copyup() where a lock on the lower vnode would
only be released if VOP_OPEN didn't fail.

show more ...


# e5bc90f4 01-Mar-1998 fvdl <fvdl@NetBSD.org>

Merge with Lite2 + local changes


# 2b0c0d95 08-Jul-1997 christos <christos@NetBSD.org>

Make this work for SETUIDSCRIPTS:
- include <sys/stat.h> for S_ISUID, S_ISGID
- fix bug where shortcut to fail would use uninitialized variables.
- elide other warnings.


# d7f33c5e 08-May-1997 mycroft <mycroft@NetBSD.org>

va_mode contains stat bits. Use S_IS[UG]ID rather than VS[UG]ID.


# f443b89c 13-Oct-1996 christos <christos@NetBSD.org>

backout previous kprintf change


# 60d20197 10-Oct-1996 christos <christos@NetBSD.org>

printf -> kprintf, sprintf -> ksprintf


# 3b34cba8 30-Sep-1996 cgd <cgd@NetBSD.org>

exec vnode locking protocol changes: in a nutshell, don't keep vnodes
locked for any longer than we have to.


# 8a5b1b92 04-Feb-1996 christos <christos@NetBSD.org>

First pass at prototyping


# c75f9f2e 10-Apr-1995 mycroft <mycroft@NetBSD.org>

Change `fdclose' to `fdrelease', to avoid confusion with device interfaces.


# 2f805fa5 09-Mar-1995 mycroft <mycroft@NetBSD.org>

copy*str() should use size_t.


1234