summaryrefslogtreecommitdiff
path: root/bin/systrace
AgeCommit message (Collapse)Author
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@
2004-01-07new command line option allows logging to stderr instead of syslogNikolay Sturm
"looks good" provos@, ok markus@
2004-01-05include path fixes for gcc3.Marc Espie
tests otto@, okay millert@
2003-11-27permit trailing '$' in usernames, from Tom CosgroveNikolay Sturm
ok provos@, henning@
2003-11-23allow underscore in usernames, from Niels/NetBSDNikolay Sturm
ok henning@
2003-11-20remove -Werror from userland builds, to give us a chance toAnil Madhavapeddy
use more verbose warning options if desired. ok millert@, henning@, david@
2003-11-20hyphenise compound adjective; from Jared Yanovich;Jason McIntyre
2003-10-22from NetBSD:Nikolay Sturm
initialise an integer field with 0 instead of NULL ok provos, itojun, avsm, fgsch
2003-10-18typos from Jared Yanovich;Jason McIntyre
2003-10-08originally from cb@openbsd.org, adapted by provosNikolay Sturm
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@
2003-09-04 - use .Bk/.EkJason McIntyre
- kill bogus -offsets - escape `-' - .Ev for environment variables
2003-08-23teach systrace about "aout" emul; henning@ ok.Federico G. Schwindt
2003-08-20spelling; e@molioner.dkTheo de Raadt
2003-08-04several diffs from Niels as applied to NetBSDNikolay Sturm
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
2003-07-19- sync with NetBSD or Niels' tarball where appropriateNikolay Sturm
- keeps local changes - fixes a bug in profile feedback optimization and avoids symbol conflicts with errno - new feature: "ask" action itojun@ ok
2003-06-24decruftMichael Shalayeff
2003-06-19remove unused code which allocated useless memory (which was not freed)Peter Valchev
ok provos itojun