projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5582c76
)
quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota
author
Christoph Hellwig
<
[email protected]
>
Tue, 16 Feb 2010 08:44:56 +0000
(
03:44
-0500)
committer
Jan Kara
<
[email protected]
>
Thu, 4 Mar 2010 23:20:25 +0000
(
00:20
+0100)
We already do these checks in the generic code.
Signed-off-by: Christoph Hellwig <
[email protected]
>
Signed-off-by: Jan Kara <
[email protected]
>
fs/xfs/linux-2.6/xfs_quotaops.c
patch
|
blob
|
history
diff --git
a/fs/xfs/linux-2.6/xfs_quotaops.c
b/fs/xfs/linux-2.6/xfs_quotaops.c
index 07d67c624922ca9506e04f6d98cc37f7c3e20f1f..1947514ce1ad05722ec4ebea43219fe64f68037f 100644
(file)
--- a/
fs/xfs/linux-2.6/xfs_quotaops.c
+++ b/
fs/xfs/linux-2.6/xfs_quotaops.c
@@
-68,8
+68,6
@@
xfs_fs_set_xstate(
return -EROFS;
if (op != Q_XQUOTARM && !XFS_IS_QUOTA_RUNNING(mp))
return -ENOSYS;
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
if (uflags & XFS_QUOTA_UDQ_ACCT)
flags |= XFS_UQUOTA_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);
}