From owner-freebsd-security@FreeBSD.ORG Mon Mar 1 04:27:41 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D6BB16A4CE for ; Mon, 1 Mar 2004 04:27:41 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB0643D2D for ; Mon, 1 Mar 2004 04:27:41 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 4B0215309; Mon, 1 Mar 2004 13:27:40 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id D5E475308; Mon, 1 Mar 2004 13:27:33 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 6270933C6B; Mon, 1 Mar 2004 13:27:33 +0100 (CET) To: "Jimmy Scott" References: <1298.213.224.103.192.1078085673.squirrel@webmail.boxke.be> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 01 Mar 2004 13:27:33 +0100 In-Reply-To: <1298.213.224.103.192.1078085673.squirrel@webmail.boxke.be> (Jimmy Scott's message of "Sun, 29 Feb 2004 21:14:33 +0100 (CET)") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-security@freebsd.org Subject: Re: procfs + chmod = no go X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 12:27:41 -0000 "Jimmy Scott" writes: > Is this possible on FreeBSD 4.9 ? Can't find anything about it in the > manual pages. Just want to prevent lusers from running: > > for file in /proc/*/cmdline; do cat $file; echo; done Why? They can get the same information from ps(1) or the kern.proc sysctl tree. (in 5.2, you can set security.bsd.see_other_uid to 0 to prevent users from seeing other users' processes) DES --=20 Dag-Erling Sm=F8rgrav - des@des.no