lkml.org 
[lkml]   [2006]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2006-11-22 11:33    [W:0.041 / U:30.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site