Skip to contentSkip to conversation

posix_acl: Add the check items

PATCH In review Liuwenyi 1 participant 1 message Dec 21, 2009 XFS filesystem

lore
Share & tools
lore

Liuwenyi

author
#0 lore raw

PATCH v2 12/12 posix_acl: Add the check items

move the ACL validation check in to fs/posix_acl.c. Including nullpointer check and PTR_ERR check.

---

---

fs/xfs/linux-2.6/xfs_acl.c +0 -0
index 2512125..3de2533 100644
@@ -392,17 +392,6 @@ xfs_xattr_acl_set(struct dentry *dentry, const char

*name,
goto set_acl;

acl = posix_acl_from_xattr(value, size);
- if (!acl) {
- /*
- * acl_set_file(3) may request that we set default ACLs with
- * zero length -- defend (gracefully) against that here.
- */
- goto out;
- }
- if (IS_ERR(acl)) {
- error = PTR_ERR(acl);
- goto out;
- }

error = posix_acl_valid(acl);
if (error)

Signature · 7 lines
Best Regards,
Liuwenyi

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs