Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
12388
Description
Hello,
'lfs quota -u $(whoami)...' reports "Permission denied' for regular users. It works if the same user queries the quota for another user:
$ whoami
cdufour
$ lfs quota -u $(whoami) /idiap/temp/$(whoami)
Permission denied.
$ lfs quota -u formaz /idiap/temp/formaz
Disk quotas for user formaz (uid 1005):
Filesystem kbytes quota limit grace files quota limit grace
/idiap/temp/formaz
113371820 1072693248 1073741824 - 452499 9999900 10000000 -
(patch follows as soon as I have the LU-<ID> for this bug)
Best,
Cédric
The fix
commit 8b9e418c013e8b671fc10108ab14243f0657bffd
Author: Cédric Dufour - Idiap Research Institute <cedric.dufour@idiap.ch>
Date: Fri Jan 24 20:57:05 2014 +0100
staging: lustre: fix quotactl permission denied (
LU-4530)The changes introduced in commit 4b1a25f06b30b203 ("fix build when
CONFIG_UIDGID_STRICT_TYPE_CHECKS is on") got the UID check the wrong way
around, leading to "Permission denied" when a regular user attempts to
retrieve his quota (lfs quota -u ...) but allowing him to retrieve other
users quota.
Full details at: https://jira.hpdd.intel.com/browse/LU-4530
Cc: Peng Tao <tao.peng@emc.com>
Cc: <stable@vger.kernel.org> # 3.12.x
Cc: <stable@vger.kernel.org> # 3.13.x
Signed-off-by: Cédric Dufour <cedric.dufour@idiap.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
was landed upstream. This ticket can be closed.