| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
case, by deleting some useless '& of an array' we also eliminate the need
for the casts which prompted the original lint warnings
ok deraadt@
|
|
|
|
| |
ok guenther millert
|
|
|
|
|
|
| |
the errno of an intervening cleanup operation like close/unlink/etc.
Diff from Doug Hogan (doug (at) acyclic.org)
|
| |
|
| |
|
|
|
|
|
|
| |
target process(es), so that systrace files can be made unsharable.
ok djm@
|
|
|
|
|
|
|
|
|
| |
ARG_MAX long, so that ic_trargv can execute reliably.
Thanks to Olivier Cherrier for reporting and helping to diagnose the
problem.
ok deraadt@
|
|
|
|
| |
ok deraadt@, sthen@, jasper@
|
|
|
|
| |
code from netbsd. ok deraadt
|
|
|
|
|
|
| |
errors otherwise hidden by systrace
noticed by naddy, ok ray on an earlier version of this diff
|
|
|
|
|
|
|
|
| |
this should get rid of
systrace: intercept_get_string: ioctl: Invalid argument
no objections from provos, ok otto
|
|
|
|
|
| |
have multiple bits set, which leads to surprising results. Spotted by/partly
from Paul Stoeber, more to come. ok ho@ miod@ hshoexer@
|
|
|
|
| |
tests and feedback by a few
|
|
|
|
| |
ok deraadt
|
|
|
|
| |
ok henning@
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
ok provos@, "works fine" sturm@
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
the syscall fail, it might not actually be a filename
fixes pr 3140, ok provos@
|
|
|
|
|
|
| |
System calls are supposed to fail on it.
from provos@, ok markus@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
itojun@ ok
fix a race condition between path resolution in userland
and the subsequent namei(): inform the kernel portion of
valid filenames and then disallow symlink lookups for
those filenames by means of a hook in namei().
with suggestions from provos@
also, add (currently unused) seqnr field to struct
systrace_replace, from provos@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
monkey.org/NetBSD commit messages:
- get rid of retarded CWD handling. CWD is fixed to the CWD of the systrace
that started everything.
- normalize file name function
- normalize CWD for cases where CWD has a symlink in it. should solve
problems where CWD policies would not match.
- avoid warning due to name collision.
- fixed contrived race condition during attachment; from marius@monkey.org
itojun@ ok
|
|
|
|
|
|
|
|
|
| |
- keeps local changes
- fixes a bug in profile feedback optimization and avoids symbol
conflicts with errno
- new feature: "ask" action
itojun@ ok
|
|
|
|
|
| |
- escape fixes for special characters
markus, sturm ok. from provos
|
|
|
|
|
|
| |
directories correctly
OK itojun@, thanks to niels for the help
|
|
|
|
|
|
|
| |
One is a kernel fix that changes the lockin and one is a userland fix that
prevents dereferencing a freed pointer.
From provos
deraadt@ ok
|
| |
|
|
|
|
| |
from provos
|
| |
|
|
|
|
| |
from provos
|
|
|
|
|
|
|
|
|
|
|
| |
with privilege elevation no suid or sgid binaries are necessary any
longer. Applications can be executed completely
unprivileged. Systrace raises the privileges for a single system call
depending on the configured policy.
Idea from discussions with Perry Metzger, Dug Song and Marcus Watts.
from provos
|
|
|
|
|
|
| |
evaluated only once; in root case, predicates and variable expansion are
dynamic.
from provos
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Use a temporary location and then copy the value into place. provos ok.
|
|
|
|
|
| |
intercept_filename deals better with symlinked last component lookups.
change some translations to use unlinkname.
|
| |
|
| |
|
|
|
|
| |
get_string
|
| |
|
| |
|
|
|
|
| |
a directory without S_IXUSR; tested by me and dugsong.
|
|
|
|
| |
avoids problems where tsleep has been interrupted by a signal.
|
|
|
|
| |
niels ok
|