summaryrefslogtreecommitdiff
path: root/bin/systrace
AgeCommit message (Collapse)Author
2014-04-24calloc is better. from Peter MaloneTed Unangst
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-10-17a.out emulation went awayTheo de Raadt
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2013-04-03LFS option is long gonePhilip Guenther
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2012-08-23Reopen the systrace file in the process that will actually attach to thePhilip Guenthe
target process(es), so that systrace files can be made unsharable. ok djm@
2012-03-02Fix handling of 'offend' (OFFset from the END of the arg list)Matthew Dempsky
arguments in systrace(1). In intercept_translate(), argsize is actually the number of *bytes* taken up by the arguments, not the number of arguments. ok ajacoutot, sthen, dcoppa
2011-10-18Bump intercept_get_string() internal buffer to allow strings up toMatthew Dempsky
ARG_MAX long, so that ic_trargv can execute reliably. Thanks to Olivier Cherrier for reporting and helping to diagnose the problem. ok deraadt@
2011-09-18Add support for *at(2) system calls to systrace(1).Matthew Dempsky
ok deraadt@, sthen@, jasper@
2011-07-04remove compat_svr4Ted Unangst
2011-04-05Remove FREEBSD_COMPAT bits and obsolete RTHREAD definePhilip Guenthe
2010-07-05compat_bsdos is goneTed Unangst
2010-07-02remove userland bits of compat_sunosTed Unangst
2010-07-01another day, another compat gets removed. today is ibcs2's turnTed Unangst
2010-06-30remove compat_osf1. ok deraadt miodTed Unangst
2010-06-29Remove COMPAT_HPUX. No one wanted to support it and its fewmets werePhilip Guenthe
blocking other cleanups ok miod@
2010-06-29ultrix compat is going away...Ted Unangst
2010-05-29repair a format-string call to setproctitle() (in a different way fromTheo de Raadt
the Gleydson Soares's report submission)
2010-04-20fix trailing slashes in filenames behavior by *not* fixing it in systrace.Ted Unangst
code from netbsd. ok deraadt
2009-11-12Only allocate memory for the regex after we've validated it insteadTodd C. Miller
of allocating and later freeing if we didn't use it. OK deraadt@ miod@
2009-11-12memory leak if regex fails, found by parfait; ok miodTheo de Raadt
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-15keep trailing slashes in path normalization, as these might result inNikolay Sturm
errors otherwise hidden by systrace noticed by naddy, ok ray on an earlier version of this diff
2007-06-06don;t try to handle obsolete protocols, print functions so cosmetics onlyHenning Brauer
ok otto ray
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29remove compat netbsd stuffOtto Moerbeek
2007-05-15don't assume 4-byte aligned memory when intercepting a stringNikolay Sturm
this should get rid of systrace: intercept_get_string: ioctl: Invalid argument no objections from provos, ok otto
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which leads to surprising results. Spotted by/partly from Paul Stoeber, more to come. ok ho@ miod@ hshoexer@
2006-08-14Adapt revision 1.18 change for symlink(2):Ray Lai
only resolve symlinks in the dirname of rename()'s arguments, but not in the filename ``looks sane to me'' sturm@, fixes espie@'s problem, ``Seems reasonable.'' provos@.
2006-07-02sync with systrace 1.6d, keeping local changesNikolay Sturm
tests and feedback by a few
2006-06-30handcrafted depend and CLEANFILES no longer needed since this is nowOtto Moerbeek
done by bsd.*.mk
2006-06-10add a translation for sendmsg()Nikolay Sturm
from provos, with feedback from ray and pat
2006-05-03be more clear about policy inheritanceNikolay Sturm
help and ok jmc, provos
2006-05-02some type cleanupNikolay Sturm
with feedback from kettenis
2006-04-26ARGSUSED and a FALLTHROUGH to please lintNikolay Sturm
ok deraadt
2006-04-03add translation for mknodNikolay Sturm
ok provos
2006-03-25only resolve symlinks in the dirname of rename()'s arguments,Nikolay Sturm
but not in the filename ok provos, no objections from tedu (who doesn't use systrace)
2006-03-18fix problems found by Coverity via NetBSD:Robert Nagy
- systrace.c: Don't try to dereference pw when it's NULL. Coverity CID 900 - parse.y: free allocated space on failure Coverity CID 1661 - policy.c: Change a return to "goto out" so that fclose will be called. Coverity CID 1881 ok sturm@, ray@
2006-03-12add a few new translations, partly from NetBSDNikolay Sturm
ok provos@, deraadt@
2006-03-06convert permanent privilege revocation to use setresuid/setresgid;Damien Miller
ok henning@
2006-01-01add PTRACE and RTHREADS definesNikolay Sturm
ok miod
2005-05-03some snprintf() -> strlcpy to improve readibility (and speed?)Nikolay Sturm
from rohee@, ok millert@ before 3.7
2005-04-23-c option may take either integer or name, not just integer;Jason McIntyre
diff from ray; ok sturm@
2005-03-10wrap bind() to AF_UNIX with umask() to avoid raceTheo de Raadt
2004-07-09#ifdef hpux only for m68k or hppa; this needs a revisit since this showsTheo de Raadt
something flawed in the way that the emulation system calls are being handled
2004-07-09oops committed the old versionMichael Shalayeff
2004-07-09better includes for syscalls from kernelMichael Shalayeff