From owner-freebsd-bugs Sat Oct 26 11: 0: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F214837B401 for ; Sat, 26 Oct 2002 11:00:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40B0C43E6E for ; Sat, 26 Oct 2002 11:00:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9QI05x3058804 for ; Sat, 26 Oct 2002 11:00:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9QI05oq058803; Sat, 26 Oct 2002 11:00:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 451C537B401 for ; Sat, 26 Oct 2002 10:58:13 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03B9743E3B for ; Sat, 26 Oct 2002 10:58:13 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9QHwC7R085351 for ; Sat, 26 Oct 2002 10:58:12 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9QHwCZP085350; Sat, 26 Oct 2002 10:58:12 -0700 (PDT) Message-Id: <200210261758.g9QHwCZP085350@www.freebsd.org> Date: Sat, 26 Oct 2002 10:58:12 -0700 (PDT) From: Andryan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/44502: ps -p pid shows process name when kern.ps_showallprocs=0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44502 >Category: bin >Synopsis: ps -p pid shows process name when kern.ps_showallprocs=0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 26 11:00:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andryan >Release: FreeBSD 4.7-STABLE >Organization: Blitzed IRC Network >Environment: FreeBSD skyla.altweb.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 19 18:28:09 EST 2002 andryan@skyla.altweb.net:/usr/obj/usr/src/sys/SKYLA i386 >Description: when ps -p pid is done, the process will show up even kern.ps_showallprocs=0 >How-To-Repeat: sysctl -w kern.ps_showallprocs=0 ps -p 1 that will show the init process if someone writes a script to do loop from 1 to certain number to get whole process list, that will be bad (kern.ps_showallprocs=0 will be useless) >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message