From owner-cvs-all@FreeBSD.ORG Sun Mar 16 17:55:07 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 193BC10656C1; Sun, 16 Mar 2008 17:55:07 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2A158FC16; Sun, 16 Mar 2008 17:55:06 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2GHt62g004046; Sun, 16 Mar 2008 17:55:06 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2GHt64v004045; Sun, 16 Mar 2008 17:55:06 GMT (envelope-from pjd) Message-Id: <200803161755.m2GHt64v004045@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 16 Mar 2008 17:55:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_resource.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 17:55:07 -0000 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, , 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