Commit ac0e7737 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jan Kara

quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota

We already do these checks in the generic code.
Signed-off-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarJan Kara <>
parent 5582c76f
......@@ -68,8 +68,6 @@ xfs_fs_set_xstate(
return -EROFS;
return -ENOSYS;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
if (uflags & XFS_QUOTA_UDQ_ACCT)
......@@ -130,8 +128,6 @@ xfs_fs_set_xquota(
return -ENOSYS;
if (!XFS_IS_QUOTA_ON(mp))
return -ESRCH;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
return -xfs_qm_scall_setqlim(mp, id, xfs_quota_type(type), fdq);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment