[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] find: /proc/5/fd: Permission denied (part 2)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.linuxgazette.com/issue46/fink.html

According to this article about the /proc filesystem, "the number directories 
are running process information by PID."

So /proc/5/fd has to do with whatever process is PID 5.  On my RaQ 4, that's 
mdrecoveryd:

[root /root]# ps -f -p 5
UID        PID  PPID  C STIME TTY          TIME CMD
root         5     1  0 Apr13 ?        00:00:00 [mdrecoveryd]

A quick Google for mdrecoveryd reveals that mdrecoveryd is a "dummy process to 
handle the recovery of threads"

Now on my Fedora box, mdrecoveryd is running on PID 8. But when I try to look 
at /proc/8/fd there is no apparent issue with that:

[root@localhost root]# ps -ef | grep mdrecoveryd
root         8     1  0 Apr16 ?        00:00:00 [mdrecoveryd]
root     19558 19411  0 06:03 pts/2    00:00:00 grep mdrecoveryd

[root@localhost root]# ls -alF /proc/8
ls: cannot read symbolic link /proc/8/exe: No such file or directory
total 0
dr-xr-xr-x    3 root root 0 Apr 19 06:03 ./
dr-xr-xr-x  117 root root 0 Apr 16 02:47 ../
- -r--r--r--    1 root root 0 Apr 19 06:03 binfmt
- -r--r--r--    1 root root 0 Apr 19 06:03 cmdline
lrwxrwxrwx    1 root root 0 Apr 19 06:03 cwd -> //
- -r--------    1 root root 0 Apr 19 06:03 environ
lrwxrwxrwx    1 root root 0 Apr 19 06:03 exe
dr-x------    2 root root 0 Apr 19 06:03 fd/
- -r--------    1 root root 0 Apr 19 06:03 maps
- -rw-------    1 root root 0 Apr 19 06:03 mem
- -r--r--r--    1 root root 0 Apr 19 06:03 mounts
lrwxrwxrwx    1 root root 0 Apr 19 06:03 root -> //
- -r--r--r--    1 root root 0 Apr 19 06:03 stat
- -r--r--r--    1 root root 0 Apr 19 06:03 statm
- -r--r--r--    1 root root 0 Apr 19 06:03 status

[root@localhost root]# ls -alF /proc/8/fd
total 0
dr-x------  2 root root 0 Apr 19 06:03 ./
dr-xr-xr-x  3 root root 0 Apr 19 06:03 ../


I've officially reached the end of my knowledge about this. Maybe it will lead 
someone to the answer...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAg895hI2So2rhOmcRAnwSAJ9nd2UYvkw7w8IifxdZg5cPq8kZZwCdEPd/
jAeAu7yeovRYITuOlFa6MUw=
=UwV6
-----END PGP SIGNATURE-----