Date: Sun, 16 Mar 2008 17:55:06 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_resource.c Message-ID: <200803161755.m2GHt64v004045@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2008-03-16 17:55:06 UTC FreeBSD src repository Modified files: sys/kern kern_resource.c Log: Fix information leak. We can find PIDs of running processes from within a jail, etc. by simply calling setpriority(PRIO_PROCESS, <PID>, 0) and checking the return value: 0 means that the process exists and -1 that it doesn't exist. Reviewed by: rwatson MFC after: 1 week Revision Changes Path 1.184 +2 -1 src/sys/kern/kern_resource.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803161755.m2GHt64v004045>