links works to an chattr +i file

=?iso-8859-1?Q?Magnus_N=E4slund=28b=29?= (mag@bahnhof.se)
Mon, 4 Oct 1999 14:28:11 +0200


Consider this example:

[root@alphan test]# ls -l 1.txt
-rw-rw-r-- 1 root root 8 Oct 4 14:28 1.txt
[root@alphan test]# chattr +i 1.txt
[root@alphan test]# rm 1.txt
rm: remove write-protected file `1.txt'? y
rm: cannot unlink `1.txt': Operation not permitted
[root@alphan test]# ln -sf 1.txt 1.txt.symlink
[root@alphan test]# cat 1.txt.symlink
locked?
[root@alphan test]#

The doc states that with chattr +i one shouldn't be able to make links to
the file...
Or does that not appy to symlinks?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Programmer/Networker [|] Magnus Naeslund
PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/