]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: fix quotactl permission denied (LU-4530)
authorCédric Dufour - Idiap Research Institute <cedric.dufour@idiap.ch>
Fri, 24 Jan 2014 19:57:05 +0000 (20:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 17:53:12 +0000 (09:53 -0800)
commit040a3e0ce4901133e047517e610f5ac9df67339b
treee993cab6c9a016427376b210f4fdaf75f3cb2c55
parent94a8cb92d05c1d038cc68e5223a2572b01b48207
staging: lustre: fix quotactl permission denied (LU-4530)

The changes introduced in commit 68efed543c5a3b4a ("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>
drivers/staging/lustre/lustre/llite/dir.c