Skip to contentSkip to conversation

/proc query

DISCUSSION cranium2003 2 participants 2 messages Dec 11, 2004 – Dec 12, 2004

lore
Share & tools
lore
#0 lore raw

hello,
Can a user program be able to overwrite /proc entry with some changes to that /proc file frequently? can same file be able to read by kernel in its actual kernel execution?
regards,
cranium

__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

#1 lore raw
Quoted 4 lines · On Fri, Dec 10, 2004 at 06:50:14PM -0800, cranium2003 wrote:

Can a user program be able to overwrite /proc entry with some changes to that /proc file frequently? can same file be able to read by kernel in its actual kernel execution?

Userspace can only set settings in the kernel when the kernel allows this. Procfs is not a storage filesystem, it stores settings and exposes information.

The kernel does not 'read' files in /proc per se, it has direct access to the relevant settings.

Procfs is like a window on the kernel, and in some cases you can hand the kernel new settings.

Signature · 2 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO