Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement
Linux 2.0 Unofficial Patches (20-immutable-fix-ext2.patch)

Ext2 immutable Fix

Steve Baker (ice@mama.indstate.edu)
Thu Jun 26 23:42:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Distributions] [Links]

20-immutable-fix-ext2.patch
I mailed Remy Card about this already, but haven't heard back from him, so I thought I'd post this to the list to make sure it got out there. A couple of weeks ago I was playing with the ext2 immutable and append flags and noticed that it is possible to overwrite an immutable or append only file simply by renameing a non-immutable file over the old immutable file! Definately defeats the purpose of immutable files.

The problem is that the new_inode isn't checked to make sure it's not immutable before the rename is done. The following patch corrects the problem (patched against 2.0.30):




[Home] [Up] [Search] [FeedBack]


For information regarding copying and distribution of this material see the COPYING document.
Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.