| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
kern_descrip.c change ok deraadt
|
| | |
|
| |
|
|
|
| |
- Don't copy the pathbuf into kernel space unless we're systracing.
deraadt@ ok
|
| |
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Make sure that we don't free random memory when that happens.
From <j at pureftpd.org>
deraadt@ ok
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
(Look ma, I might have broken the tree)
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|