Todd C. Miller
3553eee07e
Instead of calling the check function twice with a state cookie use
...
separate check/log functions.
Check more ioctl() calls for failure.
systrace_{read,write} now return the number of bytes read/written
or -1 on error.
2005-11-13 20:49:35 +00:00
Todd C. Miller
95c47e7f3b
Don't do pointer arithmetic on void *
...
Use int, not size_t/ssize_t for systrace lengths (since it uses int)
2005-04-17 05:18:24 +00:00
Todd C. Miller
9846e562ad
Implement group caching and use the passwd and group caches throughout.
2004-11-16 04:24:11 +00:00
Todd C. Miller
ae2e26fd2f
Cache passwd db entries in 2 reb-black trees; one indexed by uid,
...
the other by user name. The data returned from the cache should
be considered read-only and is destroyed by sudo_endpwent().
2004-11-15 14:53:05 +00:00
Todd C. Miller
385dfb2696
Detach from tracee on SIGHUP, SIGINT and SIGTERM. Now "sudo reboot"
...
doesn't cause reboot to inadvertanly kill itself.
2004-10-05 19:13:56 +00:00
Todd C. Miller
dc368b59fb
Add environment updating via STRIOCINJECT (if available).
2004-10-05 17:46:22 +00:00
Todd C. Miller
5eb4895b55
Fix some XXX
2004-10-01 19:06:44 +00:00
Todd C. Miller
e173a07c85
No need to include syscall.h, use 1024 as the max # of entries (the
...
max that systrace(4) allows).
Only need to use SYSTR_POLICY_ASSIGN once
Change check_syscall() -> find_handler() and have it return the
handler instead of just running it. We need this since handler now
have two parts: one part that generates and answer and another that
gets called after the answer is accepted (to do logging).
Add some missing check_exec for emul execv
2004-10-01 18:30:20 +00:00
Todd C. Miller
7edec19902
Move all struct defs and prototypes into trace_systrace.h and mark all
...
but systace_attach() static.
2004-09-30 22:27:33 +00:00
Todd C. Miller
33badbaeaa
Add support for tracing emulations. At the moment, all emulations are
...
compiled in. It might make sense to #ifdef them in the future, though
this impeeds readability.
2004-09-30 22:14:34 +00:00