Subject: CVS commit: [kqueue] syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 10/01/2002 23:29:35
Module Name:	syssrc
Committed By:	jdolecek
Date:		Tue Oct  1 20:29:35 UTC 2002

Modified Files:
	syssrc/sys/kern [kqueue]: kern_event.c

Log Message:
filt_procattach() when attaching knote to a process, check that the current
process has either same uid, or is run by superuser; this fixes botch
in the import of the code to NetBSD, when the permissions check was removed
from original FreeBSD code

Brought to my attention by report of diffent issue by
Peter Werner <Peter.Werner at wgsn dot com>.

Actual code for the check taken from OpenBSD; FreeBSD version of the check
is different enough to not be directly usable.


To generate a diff of this commit:
cvs rdiff -r1.1.1.1.2.15 -r1.1.1.1.2.16 syssrc/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.