+----[ Christopher Masto ]--------------------------------------------- | | that no other processes are using it." How do you know someone | hasn't, say, opened it in an editor, made some changes, and is about | to save?
File Permissions, it's a pretty fundamental UNIX philosophy. How do you know someone hasn't opened your kernel in an editor, made some changes and is about to save? It's not about stopping random users doing random actions to files. It's about (almost) transparently enabling processes to cooperate using a shared resource. Think of it as a mutex on a part/whole file. Mandatory locking enables a process to ensure that its transaction is safe from interference. Interference that can come from a correctly running program writing at the wrong time (but not using the locks -- maybe you don't have source for it either). What happens if root-owned process X has gone off the deep-end and is randomly writing crap into every file on your filesystem? Well you're hosed anyway. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | Milton ACN: 082 081 472 | M:+61 416 022 411 |72 Col .Sig PO Box 837 Indooroopilly QLD 4068 |a...@theinternet.com.au|Specialist To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message