Re: [PATCH 1/3] ext2/3/4: enable "undeletable" file attribute.

From: Jan Engelhardt
Date: Wed Nov 22 2006 - 05:32:13 EST



>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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/