On Mon, Jul 11, 2005 at 08:53:02AM -0400, Stephen Smalley wrote:
> > Please set the xattr from security_inode_init_security by using ->setxattr, 
> > that
> > way we don't need to duplicate this code everywhere.
> 
> That doesn't allow us to ensure that the setting of the xattr occurs in
> the same transaction as the create (in the ext3 case, doesn't matter for
> ext2), so you can still have a crash and leave an unlabeled file around.
> Just followed the example of the ACL code here, except that it doesn't
> need to call to a security module to determine the ACL of the new inode.

Makes sense.  As unfortunate as the code duplicate is we'll have to live
with it it seems.

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to