From owner-freebsd-stable@FreeBSD.ORG Mon Mar 29 23:53:31 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3526616A4EA for ; Mon, 29 Mar 2004 23:53:30 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E76143D2F for ; Mon, 29 Mar 2004 23:53:29 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id A1C87ACAF1; Tue, 30 Mar 2004 09:53:28 +0200 (CEST) Date: Tue, 30 Mar 2004 09:53:28 +0200 From: Pawel Jakub Dawidek To: David.E.Tweten@nasa.gov Message-ID: <20040330075328.GG8930@darkness.comp.waw.pl> References: <2580.1080595212@gilmore.nas.nasa.gov> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y3cq2BYpkEb43po+" Content-Disposition: inline In-Reply-To: <2580.1080595212@gilmore.nas.nasa.gov> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: stable@freebsd.org cc: Garance A Drosihn Subject: Re: Ps(1) Restricting Command Lines X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 07:53:31 -0000 --Y3cq2BYpkEb43po+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 29, 2004 at 01:20:12PM -0800, Dave Tweten wrote: +> As of my STABLE upgrade to the 8:00 GMT Saturday version, I have noticed= =20 +> that ps(1) is behaving differently. Unless run by root, "ps -ax" refuse= s=20 +> to print the command line associated with each process. I've checked a= =20 +> couple things: +>=20 +> 1. /bin/ps is not SGID kmem and /dev/kmem permission is set to 0640, +> but that isn't the cause of this problem (though it may cause +> others, since the ps(1) man page says it needs to read /dev/kmem). +>=20 +> 2. /proc/*/cmdline is owned by root:wheel and has 0444 permissions. +> It should therefore be usable by ps(1) regardless of who runs it. +>=20 +> So it looks like command lines should print, but they don't. Does anybo= dy=20 +> know what's happening here? This is my fault. Fix committed. Sorry for the mess and thank you for your report. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --Y3cq2BYpkEb43po+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaSd4ForvXbEpPzQRAn5zAKDvTlEN37o1hUIf0h2YvWJjO6rRLwCeNlzr qxBk9+Xh+ag/ILLTeZOGWUg= =U0i9 -----END PGP SIGNATURE----- --Y3cq2BYpkEb43po+--