procps

Corinna Vinschen vinschen@redhat.com
Tue Sep 3 02:32:00 GMT 2002


On Tue, Sep 03, 2002 at 09:52:02AM +0100, Morrison, John wrote:
> > From: Corinna Vinschen [mailto:vinschen@redhat.com]
> > 
> > Guys,
> > 
> > I'm still missing the "pro" votes.
> 
> Looks OK to me.  Unpacked, man pages/docs OK, didn't have
> any problems with the quick test of any of the exes...

I just tested procps(1) and there's a problem with the uids:

$ ps -e
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     1988       1    1988       1988    ?   18   Aug 30 /usr/bin/cygrunsrv
     2144    1988    1988       4016    ?   18   Aug 30 /usr/sbin/sshd
I     676       1     676       2408    1  100   Aug 31 /usr/bin/ssh
     2136       1    3800       2136    2  100 18:43:33 /usr/bin/ssh
     1380    2144    1988       1380    ?   18 11:19:39 /usr/sbin/sshd
     1760    1380    1760       4076    3  100 11:19:41 /usr/bin/tcsh
     3376    1760    3376       1236    3  100 11:28:03 /usr/bin/ps

$ procps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
corinna   1988     1  0 Aug30 ?        00:00:00 [cygrunsrv]
corinna   2144  1988  0 Aug30 ?        00:00:01 [sshd]
corinna    676     1  0 Aug31 ?        00:00:00 [ssh]
corinna   2136     1  0 Sep02 ?        00:00:00 [ssh]
corinna   1380  2144  0 11:19 ?        00:00:00 [sshd]
corinna   1760  1380  0 11:19 ?        00:00:02 [tcsh]
corinna   2416  1760  0 11:28 ?        00:00:00 [procps]


You see that all processes are attached to user "corinna" (uid 100)
while some are actually running under "SYSTEM" (uid 18)?

This is not an error in the /proc fhandler code:

$ cat /proc/2144/uid
18

$ cat /proc/676/uid
100

so there's apparently a flaw in procps.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-apps mailing list