--- linux-2.4.19-rsbac-v1.2.2/fs/open.c~	Mon Oct  7 16:50:59 2002
+++ linux-2.4.19-rsbac-v1.2.2/fs/open.c	Thu Nov 21 10:23:38 2002
@@ -215,14 +215,14 @@
           }
         #endif
 
-	down(&inode->i_sem);
-	newattrs.ia_size = length;
-	newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
-
         /* RSBAC: Overwrite truncated part, if asked by flag */
         #ifdef CONFIG_RSBAC_SECDEL
         rsbac_sec_trunc(dentry, length, old_len);
         #endif
+
+	down(&inode->i_sem);
+	newattrs.ia_size = length;
+	newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
 
 	error = notify_change(dentry, &newattrs);
 	up(&inode->i_sem);
