CVS commit: src/sys/dev/filemon

2016-01-10 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Jan 11 01:37:36 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c filemon.h Log Message: Take a reference on the (activity log) file itself, and not on the descriptor. Should fix PR kern/50627 To generate a diff of

CVS commit: src/sys/dev/filemon

2016-01-08 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sat Jan 9 07:27:31 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c Log Message: When following process parent pointers, lock the new (parent) before releasing the initial process. To generate a diff of this commit: cv

CVS commit: src/sys/dev/filemon

2016-01-08 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Jan 8 08:57:14 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Don't release the proc_lock mutex until we're finished using the stuff that the mutex protects (ie, the proc list and the entry we found in

CVS commit: src/sys/dev/filemon

2016-01-07 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jan 8 07:16:13 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c Log Message: typo in debug print To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/dev/filemon/filemon.c Please note that diffs a

CVS commit: src/sys/dev/filemon

2016-01-05 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Jan 5 22:08:54 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c Log Message: KNF - blank line after (non-existant) declarations. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/sys/dev/filemon

2016-01-05 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Jan 5 09:37:11 UTC 2016 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Although not recommended, it is possible to include filemon(4) as a built-in module. If we do this, don't try to call devsw_attach() as ou

CVS commit: src/sys/dev/filemon

2015-11-24 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Wed Nov 25 07:34:49 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c filemon.h filemon_wrapper.c Log Message: Be a bit more paranoid about hijacking (and restoring) syscall function pointers. Ensure that we have the corr

CVS commit: src/sys/dev/filemon

2015-11-23 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Nov 24 01:05:51 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Add missing /* $NetBSD$ */ keyword To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/filemon/filemon.c Please no

CVS commit: src/sys/dev/filemon

2015-11-23 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Nov 24 01:01:42 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: finish previous - remove no-longer-used variables To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/filemon/filem

CVS commit: src/sys/dev/filemon

2015-11-23 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Nov 23 23:27:38 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Remove the requirement that the target (tracked) process be a descendant of the tracking process. The call to kauth() should be sufficient

CVS commit: src/sys/dev/filemon

2015-11-23 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Nov 23 22:20:57 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Clean up the error paths in filemon_ioctl(), making sure to release the rw_lock before returning. Avoids a "locking against myself" error

CVS commit: src/sys/dev/filemon

2015-11-22 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Nov 23 00:47:43 UTC 2015 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: Retrieve the pathname of the exec'd file before we call sys_execve(). We cannot rely on using copyinstr() to retrieve the pathname

CVS commit: src/sys/dev/filemon

2015-11-21 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sun Nov 22 01:20:52 UTC 2015 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: Fix return-code handling for execve and chdir wrappers. Fixes PR kern/50309 To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/sys/dev/filemon

2015-11-20 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sat Nov 21 07:45:30 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: If a second call to the SET_FD ioctl occurs, release the reference we hold on the earlier outout file. To generate a diff of this commit:

CVS commit: src/sys/dev/filemon

2015-11-20 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sat Nov 21 03:34:28 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: The correct default return value from a module's xxx_modcmd() routine is ENOTTY, not EOPNOTSUPP! The former will allow the module to be au

CVS commit: src/sys/dev/filemon

2015-11-19 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 20 02:58:19 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Ensure that the PID specified in the FILEMON_SET_PID ioctl() call belongs to the caller or one of its descendants. To generate a diff of

CVS commit: src/sys/dev/filemon

2015-11-19 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 20 01:33:59 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Remove extra ')' (bad cut&paste) To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/dev/filemon/filemon.c Please note

CVS commit: src/sys/dev/filemon

2015-11-19 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 20 01:21:05 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Don't allow setting the PID-to-trace if the target has a non-native emulation. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1

CVS commit: src/sys/dev/filemon

2015-11-19 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 20 01:16:04 UTC 2015 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: Install wrapper functions only in native emulation. (This also removes the dependency on curproc, which may not be available at th

CVS commit: src/sys/dev/filemon

2015-11-19 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 20 01:12:38 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Don't initialize twice. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/dev/filemon/filemon.c Please note that dif

CVS commit: src/sys/dev/filemon

2015-06-16 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jun 17 02:17:00 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.h Log Message: Bump version due to openat To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/filemon/filemon.h Please note that diffs a

CVS commit: src/sys/dev/filemon

2015-06-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jun 15 19:45:31 UTC 2015 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: staircase flattening police. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/filemon/filemon_wrapper.c P

CVS commit: src/sys/dev/filemon

2015-06-15 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 15 18:11:36 UTC 2015 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: Latest clang uses openat, filemon thus needs to handle it. For the simple cases where path is absolute or dirfd is for cwd we can handl

CVS commit: src/sys/dev/filemon

2015-05-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu May 21 12:00:59 UTC 2015 Modified Files: src/sys/dev/filemon: filemon.c Log Message: Avoid dereferencing NULL tp crashing the kernel (brad harder) XXX: pullup 7 To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 s

CVS commit: src/sys/dev/filemon

2014-03-27 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Mar 27 18:27:34 UTC 2014 Modified Files: src/sys/dev/filemon: filemon.c filemon.h filemon_wrapper.c Log Message: remove a bunch of repetitive code by introducing filemon_printf. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev/filemon

2012-11-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Nov 19 22:20:10 UTC 2012 Modified Files: src/sys/dev/filemon: filemon.c filemon.h filemon_wrapper.c Log Message: filemon_pid_check: Avoid recursion, and hold a reader lock on p_reflock while we check for filemon, and until we hav

CVS commit: src/sys/dev/filemon

2011-09-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Sep 24 18:08:15 UTC 2011 Modified Files: src/sys/dev/filemon: filemon.h filemon_wrapper.c Log Message: 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 ve

CVS commit: src/sys/dev/filemon

2011-07-04 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jul 4 23:37:30 UTC 2011 Modified Files: src/sys/dev/filemon: filemon.c filemon.h Log Message: Set FILEMON_VERSION to 3 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/filemon/filemon.c cvs rdiff -u -r1.

CVS commit: src/sys/dev/filemon

2011-05-13 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Fri May 13 22:31:08 UTC 2011 Modified Files: src/sys/dev/filemon: filemon.c Log Message: filemon_open: remove unnecessary check (which has a leak in error path). To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys

CVS commit: src/sys/dev/filemon

2011-03-13 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Mar 13 21:26:31 UTC 2011 Modified Files: src/sys/dev/filemon: filemon_wrapper.c Log Message: EJUSTRETURN is expected return from sys_execve() To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/filemon/filem