summaryrefslogtreecommitdiffstats
path: root/bin/systrace (follow)
Commit message (Collapse)AuthorAgeFilesLines
* boom goes the dynamitetedu2016-04-2521-8440/+0
|
* drop Linux emulation support; ok sthen@ visa@naddy2016-03-018-786/+6
|
* rename a few variables/functions to avoid shadowingtedu2015-12-301-4/+4
|
* Remove NULL-check before free(). ok tb@mmcc2015-12-094-28/+16
|
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-011-4/+2
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* unifdef support for other operating systems. sorry OS/2 cultists.tedu2015-09-292-40/+2
| | | | ok deraadt
* mark up arguments individually and drop redundant .Bkschwarze2015-09-121-8/+6
|
* Apply normal handling to atfd+path args to chflagsat(2)guenther2015-06-241-1/+6
| | | | | Problem noted by patrick keshishian (sidster (at) boxsoft.com) ok deraadt@
* Convert many atoi() calls to strtonum(), adding range checks and failurederaadt2015-04-183-7/+17
| | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
* move to PATH_MAX, etc; normalize includes for life in the <limits.h> universederaadt2015-01-1611-36/+43
| | | | ok guenther millert
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-262-5/+5
|
* Correct an allocation size (was too large) by using sizeof(*ptr)guenther2014-11-161-3/+3
| | | | | | instead of sizeof(type). diff from Nicolas Bedos (nicolas.bedos (at) gmail.com)
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
| | | | ok millert@
* obvious cases of missing .An;schwarze2014-09-081-3/+4
| | | | | found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
* Delete secret or secret-derived data with explicit_bzero.doug2014-08-251-2/+2
| | | | | concept ok deraadt@ diff looks ok tedu@
* Only need <stdint.h> and not all of <inttypes.h> hereguenther2014-08-103-5/+5
|
* Add F_DUPFD_CLOEXEC handlingguenther2014-08-101-1/+4
|
* Add newer errnosguenther2014-08-102-4/+20
|
* Switch from calloc() to reallocarray() where the zeroing isn't neededguenther2014-08-091-2/+3
|
* Make sure the correct errno is reported by warn* or err* and notguenther2014-07-201-5/+9
| | | | | | the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
* calloc is better. from Peter Malonetedu2014-04-241-5/+4
|
* add unsigned char casts for specific calls to ctype.h macros.deraadt2013-11-212-5/+5
| | | | ok guenther step
* a.out emulation went awayderaadt2013-10-171-2/+1
|
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-291-2/+2
| | | | ok otto
* LFS option is long goneguenther2013-04-031-3/+1
|
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+4
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* remove some unnecessary sys/param.h inclusionsderaadt2012-12-047-14/+7
|
* Reopen the systrace file in the process that will actually attach to theguenther2012-08-233-10/+18
| | | | | | target process(es), so that systrace files can be made unsharable. ok djm@
* Fix handling of 'offend' (OFFset from the END of the arg list)matthew2012-03-021-2/+5
| | | | | | | | 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
* Bump intercept_get_string() internal buffer to allow strings up tomatthew2011-10-181-2/+2
| | | | | | | | | ARG_MAX long, so that ic_trargv can execute reliably. Thanks to Olivier Cherrier for reporting and helping to diagnose the problem. ok deraadt@
* Add support for *at(2) system calls to systrace(1).matthew2011-09-185-12/+184
| | | | ok deraadt@, sthen@, jasper@
* remove compat_svr4tedu2011-07-041-4/+1
|
* Remove FREEBSD_COMPAT bits and obsolete RTHREAD defineguenther2011-04-051-6/+1
|
* compat_bsdos is gonetedu2010-07-051-4/+1
|
* remove userland bits of compat_sunostedu2010-07-021-4/+1
|
* another day, another compat gets removed. today is ibcs2's turntedu2010-07-011-4/+1
|
* remove compat_osf1. ok deraadt miodtedu2010-06-301-4/+1
|
* Remove COMPAT_HPUX. No one wanted to support it and its fewmets wereguenther2010-06-291-10/+1
| | | | | blocking other cleanups ok miod@
* ultrix compat is going away...tedu2010-06-291-4/+1
|
* repair a format-string call to setproctitle() (in a different way fromderaadt2010-05-291-4/+2
| | | | the Gleydson Soares's report submission)
* fix trailing slashes in filenames behavior by *not* fixing it in systrace.tedu2010-04-201-3/+144
| | | | code from netbsd. ok deraadt
* Only allocate memory for the regex after we've validated it insteadmillert2009-11-121-13/+9
| | | | of allocating and later freeing if we didn't use it. OK deraadt@ miod@
* memory leak if regex fails, found by parfait; ok miodderaadt2009-11-121-2/+5
|
* typos; ok jmc@martynas2007-11-261-2/+2
| | | | | sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* keep trailing slashes in path normalization, as these might result insturm2007-06-151-4/+13
| | | | | | errors otherwise hidden by systrace noticed by naddy, ok ray on an earlier version of this diff
* don;t try to handle obsolete protocols, print functions so cosmetics onlyhenning2007-06-062-13/+1
| | | | ok otto ray
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* remove compat netbsd stuffotto2007-05-291-4/+1
|
* don't assume 4-byte aligned memory when intercepting a stringsturm2007-05-151-2/+2
| | | | | | | | this should get rid of systrace: intercept_get_string: ioctl: Invalid argument no objections from provos, ok otto