Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-4530

Mainline kernel client (3.12-3.14): lfs quota -u ... -> Permission denied

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

      Attachments

        Issue Links

          Activity

            [LU-4530] Mainline kernel client (3.12-3.14): lfs quota -u ... -> Permission denied
            ys Yang Sheng made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            ys Yang Sheng added a comment -

            Close as James's comment.

            ys Yang Sheng added a comment - Close as James's comment.
            simmonsja James A Simmons made changes -
            Link New: This issue is related to LU-6215 [ LU-6215 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-4011 [ LU-4011 ]

            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.

            simmonsja James A Simmons added a comment - 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.

            Peter you can close this ticket as well since the patch has landed upstream.

            simmonsja James A Simmons added a comment - Peter you can close this ticket as well since the patch has landed upstream.

            This patch landed upstream. We can now close this ticket.

            simmonsja James A Simmons added a comment - This patch landed upstream. We can now close this ticket.
            green Oleg Drokin added a comment -

            LU-4416 is not related to in-kernel client, instead it's for our efforts to make our lustre version to compile against mainline kernel.
            There's certainly some overlap, but please file in-kernel client bugreports separately ad marked as such

            green Oleg Drokin added a comment - LU-4416 is not related to in-kernel client, instead it's for our efforts to make our lustre version to compile against mainline kernel. There's certainly some overlap, but please file in-kernel client bugreports separately ad marked as such
            green Oleg Drokin made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Oleg Drokin [ green ]

            Thanks for your detailed answer to my questions. I am glad to see you are putting further
            effort into the vanilla kernel client. Looking forward to the days, when the server code will
            compile against recent vanilla kernels as well

            rfehren Roland Fehrenbacher added a comment - Thanks for your detailed answer to my questions. I am glad to see you are putting further effort into the vanilla kernel client. Looking forward to the days, when the server code will compile against recent vanilla kernels as well

            People

              green Oleg Drokin
              cdufour Cédric Dufour
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: