|
@@ -468,6 +468,12 @@ xfs_attrlist_by_handle(
|
|
|
if (al_hreq.buflen > XATTR_LIST_MAX)
|
|
|
return -XFS_ERROR(EINVAL);
|
|
|
|
|
|
+ /*
|
|
|
+ * Reject flags, only allow namespaces.
|
|
|
+ */
|
|
|
+ if (al_hreq.flags & ~(ATTR_ROOT | ATTR_SECURE))
|
|
|
+ return -XFS_ERROR(EINVAL);
|
|
|
+
|
|
|
error = xfs_vget_fsop_handlereq(mp, parinode, &al_hreq.hreq, &inode);
|
|
|
if (error)
|
|
|
goto out;
|