Commit Graph

10 Commits

Author SHA1 Message Date
christos
2cd2c9ba7b remove a bunch of repetitive code by introducing filemon_printf. 2014-03-27 18:27:34 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
sjg
756a23da8b filemon_pid_check:
Avoid recursion, and hold a reader lock on p_reflock while we
check for filemon, and until we have p_pptr.

filemon_ioctl:
Do not allow FILEMON_SET_PID unless caller would be allowed
to ptrace the target pid.

filemon_wrapper_deinstall:
Do not touch syscalls if they no longer point to us, return EBUSY.

filemon_unload:
return EBUSY if filemon_wrapper_deinstall() fails.
2012-11-19 22:20:10 +00:00
sjg
7b6d7531a8 Install filemon.h 2012-06-20 21:38:26 +00:00
sjg
db4d363da5 Add the plumbing so one could compile filemon(4) into a kernel. 2011-10-15 00:23:08 +00:00
sjg
053773f1f4 For files opened O_RDWR, output an R record as well as W
so that clients that only care about files read can ignore W.
Bump version.
2011-09-24 18:08:15 +00:00
sjg
98cc584599 Set FILEMON_VERSION to 3 2011-07-04 23:37:30 +00:00
rmind
3c66f2d262 filemon_open: remove unnecessary check (which has a leak in error path). 2011-05-13 22:31:08 +00:00
sjg
a864846b25 EJUSTRETURN is expected return from sys_execve() 2011-03-13 21:26:31 +00:00
sjg
ce171c67f4 First cut of simple syscall wrapper, which make(1) can use
to track process activity.
2010-09-09 00:10:16 +00:00