summaryrefslogtreecommitdiff
path: root/bin/systrace
AgeCommit message (Collapse)Author
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
2004-07-07fix an issue when scripts are exec'd under systrace wheremarius eriksen
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@
2004-06-24if we have detached after an exec, bail out early, and avoid a double free.marius eriksen
ok provos@, "works fine" sturm@
2004-06-23a few fixes to systracemarius eriksen
- 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
2004-03-30if a string considered a filename is too long, don't exit but just letNikolay Sturm
the syscall fail, it might not actually be a filename fixes pr 3140, ok provos@
2004-02-01make documentation of cradle mode (-C) clearer, and give an example of whyJason McIntyre
it might be used; mostly based on sturm@'s explanation when i hassled him about it, and committed by niels@ to main systrace repository;
2004-01-30The empty filename does not receive normalization.Nikolay Sturm
System calls are supposed to fail on it. from provos@, ok markus@
2004-01-23support for cradle mode by marius at monkey.org; cradle mode allows theNikolay Sturm
systrace UI to be attached and re-attached, it also multiplexes across systrace process so that one UI can function as central notification from provos@, ok markus@