 | | The /proc filesystem contains one file for each process currently running on the system; the name of the file is the same as the process ID for the process. The owner of the file is set to the process' real user ID, and the permission bits are set so the file is readable and writable only by its owner. The superuser, of course, may open, read, and write any file (process). For security reasons, an open of a file in /proc fails unless both the user ID and group ID of the caller match those of the process, and the process' object file is readable by the caller. Files corresponding to set-user-id and set-group-id processes may be opened only by the superuser. | |
|