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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux