summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/ktrstruct.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Show scope id when set; ok florian@otto2020-12-211-4/+7
|
* Be more careful when dumping cmsghdr struct. In the SCM_RIGHTS case anclaudio2018-11-171-2/+4
| | | | | | extra check for a truncated cmsghdr needs to be done since the embeded lenght may be longer than the supplied buffer (MSG_CTRUNC case). OK deraadt@
* Peldge and unveil can have struct data size 0. While there, fix "fds"otto2018-11-081-7/+16
| | | | handler; ok guenther@
* trace struct flock; ok visa@anton2018-11-051-1/+20
|
* Unveiling unveil(2).beck2018-07-131-1/+5
| | | | | | | | | | | | | This brings unveil into the tree, disabled by default - Currently this will return EPERM on all attempts to use it until we are fully certain it is ready for people to start using, but this now allows for others to do more tweaking and experimentation. Still needs to send the unveil's across forks and execs before fully enabling. Many thanks to robert@ and deraadt@ for extensive testing. ok deraadt@
* pledge()'s 2nd argument becomes char *execpromises, which becomes thederaadt2017-12-121-6/+6
| | | | | | | | | | pledge for a new execve image immediately upon start. Also introduces "error" which makes violations return -1 ENOSYS instead of killing the program ("error" may not be handed to a setuid/setgid program, which may be missing/ignoring syscall return values and would continue with inconsistant state) Discussion with many florian has used this to improve the strictness of a daemon
* Add ktracing of the fds returned by pipe() and socketpair()guenther2016-10-081-1/+19
| | | | ok deraadt@
* Pull in <sys/select.h> for fd_setguenther2016-08-261-1/+2
| | | | ok deraadt@
* ktrace support for pollfd[] arraysderaadt2016-06-071-1/+26
| | | | ok guenther
* add a hack to avoid printing the long string format for times in the 70s.tedu2016-06-071-2/+3
| | | | | | this is usually a result of a timestamp which hasn't been identified as "relative" and decoding them to precise dates long in the past is a distraction. (eagerly awaiting a cleaner, better diff to do the same.)
* On hppa, function pointer comparison can require dereferencing them.guenther2016-05-221-3/+9
| | | | | | | kdump can't do that for a sigaction sa_handler pointer from the trace, so cast to void* to suppress it. ok deraadt@
* Display NAMI records and AF_UNIX socket paths with vis, usingguenther2016-03-241-24/+25
| | | | | | | | | VIS_CSTYLE | VIS_DQ | VIS_TAB | VIS_NL; add the latter three flags to the existing vis encoding of exec argv/environ and pledge requests/paths. Delete local variables left unused when showbuf() and showbufc() were split ok otto@ millert@
* Make the fd_set* passed to FD_ISSET() non-const: the non-macro version isguenther2016-03-051-2/+2
| | | | stricter (per POSIX, dang it)
* Display struct event more like other structs: show all members and use cppguenther2016-01-141-42/+15
| | | | | | | | | | define names. Use the mksubr infrastructure for EVFILT_*, EV_*, and (with some kludging) NOTE_* values. If EV_ERROR is set, include the errno string for the data member. Also, do MSG_* parsing on the msg_flags member of struct msghdr. ok millert@
* print more info about keventtedu2016-01-061-2/+41
|
* very basic kevent printingtedu2015-12-251-1/+23
|
* Use offsetof() instead of adding the sizes of the preceeding struct membersguenther2015-10-181-4/+4
| | | | ok millert@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-7/+7
|
* Add ktracing of tame()'s arguments' valuesguenther2015-10-031-1/+9
| | | | "every tool helps" deraadt@
* Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(),guenther2015-07-281-1/+100
| | | | | | | sendmsg(), and recvmsg(). For cmsghdr, the len, level, and type are always shown, and for SOL_SOCKET,SCM_RIGHTS the fd numbers being passed are shown. ok millert@ deraadt@
* Don't display formatted time if localtime() fails.jsg2014-12-161-3/+6
| | | | | Avoids a crash in strftime() found with the afl fuzzer. ok guenther@
* Eliminate the -r option and always do sysctl OID, username, groupname,guenther2014-12-151-36/+55
| | | | | | | and ctime presentation, but combined with the numeric form ala 0<"root">. Do username and groupname presentation on syscall arguments and retvals. ok millert@ otto@
* Be more POSIXy by using blksize_t (a.k.a. int32) for st_blksize, rather than the current uint32_t.krw2014-11-201-2/+2
| | | | ok guenther@ deraadt@
* Add dumping of struct dqblk done by quotactl(2)guenther2014-10-131-1/+23
| | | | ok millert@
* remove (commented) bluetooth referencetedu2014-07-111-3/+1
|
* Negative time{spec,val}s with non-zero subsecond parts require extraguenther2014-06-221-9/+21
| | | | | | | handling. E.g., a timeval of { -1, 1 } is -0.999999, as the subsecond part is always positive. Also, update the list of sockaddr_* types that we might add support for
* exit1() needs to do a final aggregation of the thread's [us]ticksguenther2014-01-241-3/+33
| | | | | | | | and runtime to the process totals. Also, add ktracing of struct rusage in wait4() and getrusage(). problem pointed out by tedu@ ok deraadt@
* Recognize the UTIME_OMIT and UTIME_NOW values when printing timespecsguenther2013-09-091-4/+10
| | | | ok otto@
* Split out from kdump.c the ktrstruct.c bits into ktrstruct.cguenther2013-08-221-0/+380
Reduce the #includes to take advantage of that. ok millert@ otto@