[Ocfs2-devel] [PATCH 3/3] ocfs2: Add posix ACL support in ocfs2 v1
Tiger Yang
tiger.yang at oracle.com
Wed Sep 24 01:01:46 PDT 2008
Hi, Mark,
Mark Fasheh wrote:
> I think we also need some acl-specific handling of chmod in ocfs2_setattr.
> See ext3_acl_chmod, where it's called and what it does.
OK. I will add it later after learning ext3.
> Err, this is a pretty bad place for a call which must do work only if we're
> succesfull in creating the inode. A better place would be a few lines up,
> maybe even just before the call to 'ocfs2_add_entry()', so that an acl
> failure won't result in a non-acl-copied inode which is accessible from a
> directory.
I put this function here because ocfs2_xattr_set need start transaction.
So I put it after commit transaction.
To avoid the issue you mentioned, I modify it to the following
- status = ocfs2_init_acl(inode, dir);
+ if (!status) {
+ if (ocfs2_init_acl(inode, dir))
+ mlog(0, "Init acl error\n");
+ }
is this acceptable?
> Same as before about the #ifdef's, and adding a proper Kconfig item for
> this.
No problem.
Best regards,
tiger
More information about the Ocfs2-devel
mailing list