0cc7521383
Implement a "variable" directory structure. Files that do not make sense for the given process do not "appear" and cannot be opened. For example, "system" processes do not have "file", "regs" or "fpregs", because they do not have a user area. "attempt" to fill in the user area of a given process when it is being accessed via /proc/pid/mem (the user struct is just after VM_MAXUSER_ADDRESS in the process address space.) Dont do IO to the U area while it's swapped, hold it in place if possible. Lock off access to the "ctl" file if it's done a setuid like the other pseudo-files in there. |
||
---|---|---|
.. | ||
deadfs | ||
devfs | ||
fdesc | ||
fifofs | ||
kernfs | ||
nullfs | ||
portal | ||
procfs | ||
specfs | ||
umapfs | ||
union |