Re: /proc query
From: bert hubert
Date: Sun Dec 12 2004 - 07:59:53 EST
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.
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/