Re: ps under FreeBSD

From: Torbjorn Kristoffersen (sgt@digiweb.no)
Date: 05/20/02


Date: Mon, 20 May 2002 04:29:37 +0200
From: Torbjorn Kristoffersen <sgt@digiweb.no>
To: bugtraq@securityfocus.com


On Sat, May 18, 2002 at 08:40:38PM +0200, Jakub Filonik wrote:
> Hi,
> I was playing with ps on FreeBSD with kern.ps_showallprocs=0 and I was
> surprised when I have seen that I may see info about running process, if I
> know it's ID
>
> I think it may be seen as bug. What do You think?
>

This is a known problem, see Problem Report kern/30608 at
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/30608
This issue is fixed in Current, but not in FreeBSD 4.5-STABLE, etc.

By the way, I was thinking of the best way to view all the "hidden" processes at
the same time. Something similar to ''for i in $(jot 99999); do ps -u$i....''
is extremely slow and sometimes hangs my system.

Included is therefore a patch for ps.c in /usr/src/bin/ps to view all the
"hidden" processes (just a braindead hack, really..). Any normal user can
compile his own hacked 'ps'.

You could always traverse /proc instead, but cmdline and status give too little
info.

-- 
Torbjorn Kristoffersen <sgt@digiweb.no>

"Real programmers don't comment their code. It was hard to write, it should be hard to understand."




Relevant Pages

  • Re: PR - Incorrect confirmation code
    ... Its really "Thank you" from my part also, this Problem Report ... You may also want to try using send-princluded in FreeBSD base, ... IMO it works a lot better than the webform anyway. ... nice gui for send-pr and doesn't mangle patches. ...
    (freebsd-questions)
  • Re: FBSD4.11 port cups-base-1.2.0_2 Generating server key
    ... was wandering if there is a time for the freebsd ... I haven't a clue what you're talking about, but if you know the fix, ... you're welcome to submit it with a problem report. ... and how to painlessly update it. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FBSD4.11 port cups-base-1.2.0_2 Generating server key
    ... was wandering if there is a time for the freebsd ... you're welcome to submit it with a problem report. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Differences between GNU and FreeBSD C library
    ... opening tickets in our bug database which merely point out what ... FreeBSD is a free ... But please, PLEASE people, do a little bit of homework before you open a problem report. ...
    (comp.unix.bsd.freebsd.misc)
  • RE: FreeBSD beginner (NetBSD advanced).
    ... is always under develpoment and not yet released. ... >> get real IPv6 zone allocation soon and want to use it. ... Aren't FreeBSD and NetBSD using the same IPv6 stack from the KAME project? ... - Problem Report bin/30310; ...
    (freebsd-questions)

Quantcast