[2108] in bugtraq

home help back first fref pref prev next nref lref last post

/proc ps for Solaris 2.X

daemon@ATHENA.MIT.EDU (Doug Hughes)
Wed Aug 16 11:00:29 1995

Date:         Wed, 16 Aug 1995 08:35:53 -0500
Reply-To: Bugtraq List <BUGTRAQ@CRIMELAB.COM>
From: Doug Hughes <Doug.Hughes@Eng.Auburn.EDU>
X-To:         BUGTRAQ@CRIMELAB.COM
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@CRIMELAB.COM>
In-Reply-To:  <199508152232.SAA09696@netspace.org>

>I found that the program would not work if I tried to put the root shell in
>my home dir, which was mounted via NFS.  I tried fo half an hour.
>If I tried moving it to /tmp, it worked within a minute, a couple of times.
>
>Is there a /proc based ps? It seems to me that this would be a better fix.
>

Well, I wrote a quick and dirty /proc ps some time in the past. The
motivation was that regular ps gets stuck when an I/O device is not
available, but the /proc based ps doesn't, hence it will allow you to
see all the processes, whether one is stuck on I/O or not. It's also
a lot faster than regular ps. Right now it only does
process_id  terminal  user   process_name

But it would be trivial to add more functionality to it if desired.

Disadvantages: must be suid root to be useful for a normal user. (since
currently it has no flags and uses no temp files, there is very little
that could be exploited as a security hole.) In fact the entire file
is 68 lines long.


ftp.eng.auburn.edu:pub/doug/qps.c

--
____________________________________________________________________________
Doug Hughes                                     Engineering Network Services
System/Net Admin                                Auburn University
                        doug@eng.auburn.edu
                "Real programmers use cat > file.as"

home help back first fref pref prev next nref lref last post