Re: Proposal: restrict link(2)

Ion Badulescu (
Fri, 13 Dec 1996 10:45:18 -0500 (EST)

On Fri, 13 Dec 1996, Theodore Y. Ts'o wrote:

> Date: Fri, 13 Dec 1996 02:43:11 -0500 (EST)
> From: Dan Merillat <>
> Besides, by link()ing to a file you change it. And if you don't have the
> ability to write to it, you should _NOT_ be able to change a file.
> symlinks don't count, as they are just pointers to a file that may, or may
> not exist. Hard links become the file itself.
> Incorrect. Being able to link to a file does not mean you can change
> it.

No, you can't change the data blocks. But you _will_ change the inode by
incrementing the link count.

I'm not saying that changing the link count is wrong by itself, as you can
also change the atime by simply reading the file..


  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.