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

Project quotas: users can change project IDs

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.14.0, Lustre 2.12.4
    • Lustre 2.12.2
    • None
    • CentOS 7.6, ldiskfs, 2.12.2_116+3
    • 3
    • 9223372036854775807

    Description

      We're considering using project quotas in the future but we noticed that users can change or clear the project id of their own files/directories. How can we restrict access to project IDs only to admins (like ext4 does I guess?). We looked at the manual but couldn't find how permissions are handled. Sorry if we missed something obvious.

       

      [root@fir-io7-s2 users]# ls -ld /firhdr/users/sthiell
      drwxr-x--- 4 sthiell root 4096 Sep 30 20:30 /firhdr/users/sthiell
      [root@fir-io7-s2 users]# lfs project -d /firhdr/users/sthiell
         10 P /firhdr/users/sthiell
      
      [root@fir-io7-s2 users]# su -m sthiell
      
      bash-4.2$ cd  /firhdr/users/sthiell
      bash-4.2$ lfs project -C .
      bash-4.2$ lfs project -d .
          0 - .
      

      Attachments

        Issue Links

          Activity

            [LU-12826] Project quotas: users can change project IDs
            pjones Peter Jones made changes -
            Link Original: This issue is related to JFC-17 [ JFC-17 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to JFC-20 [ JFC-20 ]
            pjones Peter Jones made changes -
            Labels Original: LTS12
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.12.4 [ 14690 ]

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37056/
            Subject: LU-12826 mdt: limit root to change project state by default
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 11c9ec6384070c0627b45b17e16e1a1c9aea7249

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37056/ Subject: LU-12826 mdt: limit root to change project state by default Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 11c9ec6384070c0627b45b17e16e1a1c9aea7249

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/37056
            Subject: LU-12826 mdt: limit root to change project state by default
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 993b9274805056998282eaac28523841ceaa26ff

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/37056 Subject: LU-12826 mdt: limit root to change project state by default Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 993b9274805056998282eaac28523841ceaa26ff
            pjones Peter Jones made changes -
            Link Original: This issue is related to JFC-10 [ JFC-10 ]
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.14.0 [ 14490 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            pjones Peter Jones added a comment -

            Landed for 2.14. sthiell yes it's flagged to be back ported!

            pjones Peter Jones added a comment - Landed for 2.14. sthiell yes it's flagged to be back ported!
            pjones Peter Jones made changes -
            Link New: This issue is related to JFC-17 [ JFC-17 ]

            People

              wshilong Wang Shilong (Inactive)
              sthiell Stephane Thiell
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: