diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index 01939ba2d8de..993f5720200a 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -468,6 +468,12 @@ xfs_attrlist_by_handle( | |||
468 | if (al_hreq.buflen > XATTR_LIST_MAX) | 468 | if (al_hreq.buflen > XATTR_LIST_MAX) |
469 | return -XFS_ERROR(EINVAL); | 469 | return -XFS_ERROR(EINVAL); |
470 | 470 | ||
471 | /* | ||
472 | * Reject flags, only allow namespaces. | ||
473 | */ | ||
474 | if (al_hreq.flags & ~(ATTR_ROOT | ATTR_SECURE)) | ||
475 | return -XFS_ERROR(EINVAL); | ||
476 | |||
471 | error = xfs_vget_fsop_handlereq(mp, parinode, &al_hreq.hreq, &inode); | 477 | error = xfs_vget_fsop_handlereq(mp, parinode, &al_hreq.hreq, &inode); |
472 | if (error) | 478 | if (error) |
473 | goto out; | 479 | goto out; |