From 344617d741d1cea1d0cc4b29e7f3e0ebf5ba1644 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 27 Jun 2008 13:32:19 +1000 Subject: [PATCH] --- yaml --- r: 107449 b: refs/heads/master c: 90ad58a83accbeb8de09de4a55d3e6b429767eae h: refs/heads/master i: 107447: 0fbd39540ec39656daa863d7bf63c686bddd45c2 v: v3 --- [refs] | 2 +- trunk/fs/xfs/linux-2.6/xfs_ioctl.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 09b79e0339b3..71e99fe89ab6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 07fe4dd48d046feeff8705a2a224a8fba050b1c6 +refs/heads/master: 90ad58a83accbeb8de09de4a55d3e6b429767eae diff --git a/trunk/fs/xfs/linux-2.6/xfs_ioctl.c b/trunk/fs/xfs/linux-2.6/xfs_ioctl.c index 01939ba2d8de..993f5720200a 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/trunk/fs/xfs/linux-2.6/xfs_ioctl.c @@ -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;