[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B2F6407.4060805@gmail.com>
Date: Mon, 21 Dec 2009 20:03:19 +0800
From: Liuwenyi <qingshenlwy@...il.com>
To: aelder@....com, xfs-masters@....sgi.com, hch@....de,
viro@...iv.linux.org.uk, sandeen@...deen.net,
joel.becker@...cle.com, xfs@....sgi.com,
linux-kernel@...r.kernel.org, strongzgy@...il.com,
onlyflyer@...il.com
Subject: [PATCHv2 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.
---
Signed-off-by: Liuwenyi <qingshenlwy@...il.com>
Cc: Alex Elder <aelder@....com>
Cc: xfs-masters@....sgi.com
Cc :Christoph Hellwig <hch@....de>
Cc: Al Viro <viro@...iv.linux.org.uk>
Cc: Eric Sandeen <sandeen@...deen.net>
Cc: Joel Becker <joel.becker@...cle.com>
Cc: xfs@....sgi.com
Cc: linux-kernel@...r.kernel.org
---
diff --git a/fs/xfs/linux-2.6/xfs_acl.c b/fs/xfs/linux-2.6/xfs_acl.c
index 2512125..3de2533 100644
--- a/fs/xfs/linux-2.6/xfs_acl.c
+++ b/fs/xfs/linux-2.6/xfs_acl.c
@@ -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)
--
Best Regards,
Liuwenyi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists