Messages in this thread | | | Date | Wed, 22 Nov 2006 11:27:40 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: [PATCH 1/3] ext2/3/4: enable "undeletable" file attribute. |
| |
>Currently, although you can mark a file as undeletable with 'chattr'... > > > touch /tmp/wibble > > ls -l /tmp/wibble > -rw-rw-r-- 1 james james 0 Nov 16 20:00 /tmp/wibble > > chattr +u /tmp/wibble # mark file as undeletable > > lsattr /tmp/wibble > -u----------- /tmp/wibble > >... it's not honoured by the kernel: > > > rm /tmp/wibble # yikes! this should fail!!
Currently, the immutable flag controls the behavior to forbid deletion.
-`J' -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |