Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 09:53:28 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        David.E.Tweten@nasa.gov
Cc:        Garance A Drosihn <drosih@rpi.edu>
Subject:   Re: Ps(1) Restricting Command Lines
Message-ID:  <20040330075328.GG8930@darkness.comp.waw.pl>
In-Reply-To: <2580.1080595212@gilmore.nas.nasa.gov>
References:  <2580.1080595212@gilmore.nas.nasa.gov>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 
+> that ps(1) is behaving differently.  Unless run by root, "ps -ax" refuses 
+> to print the command line associated with each process.  I've checked a 
+> couple things:
+> 
+> 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).
+> 
+> 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.
+> 
+> So it looks like command lines should print, but they don't.  Does anybody 
+> know what's happening here?

This is my fault. Fix committed. Sorry for the mess and thank you for
your report.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAaSd4ForvXbEpPzQRAn5zAKDvTlEN37o1hUIf0h2YvWJjO6rRLwCeNlzr
qxBk9+Xh+ag/ILLTeZOGWUg=
=U0i9
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330075328.GG8930>