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

non-root user is able to change stripe size for mount point

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.9.0, Lustre 2.14.0
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      A non-root user is able to setstripe on the mount point to -1, with the owner:group of the mounted point being root:root and mode 0755. This causes all users of the file system to get wide stripes as the default, which is undesirable.

      Attachments

        Issue Links

          Activity

            [LU-8454] non-root user is able to change stripe size for mount point

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38106/
            Subject: LU-8454 Remove struct mgs_send_param and its users
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 66b4fd4317f9bd721aaa485c81987cecc049d92f

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38106/ Subject: LU-8454 Remove struct mgs_send_param and its users Project: fs/lustre-release Branch: master Current Patch Set: Commit: 66b4fd4317f9bd721aaa485c81987cecc049d92f

            Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38106
            Subject: LU-8454 Remove struct mgs_send_param and its users
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b1cd84c6b037f7b872478e05c5c8345b9d5fc421

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38106 Subject: LU-8454 Remove struct mgs_send_param and its users Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b1cd84c6b037f7b872478e05c5c8345b9d5fc421
            pjones Peter Jones added a comment -

            Landed for 2.9

            pjones Peter Jones added a comment - Landed for 2.9

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22580/
            Subject: LU-8454 mountconf: delay FS default stripe config setting
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 85a7f5801013636284f93fdf0861476c19567ebd

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22580/ Subject: LU-8454 mountconf: delay FS default stripe config setting Project: fs/lustre-release Branch: master Current Patch Set: Commit: 85a7f5801013636284f93fdf0861476c19567ebd

            Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/22580
            Subject: LU-8454 mountconf: delay FS default stripe config setting
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: bd925f04723f60e469c5c8da741ea9edb009bc8b

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/22580 Subject: LU-8454 mountconf: delay FS default stripe config setting Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: bd925f04723f60e469c5c8da741ea9edb009bc8b

            The change to store the default layout on the root directory was only landed to 2.9.0 via LU-7660, so disabling this feature in 2.10 already is too agressive. That means a 2.10+ client mounting a 2.8 server will not be able to set the default layout properly.

            Probably something like > 2.13.53 (i.e. for 2.14 release) is more appropriate, since that would be at least one major maintenance release cycle (usually 3x point releases) beyond the first major maintenance release that it will appear in (somewhere around 2.10 or 2.11).

            Also, in addition to removing the code in ll_set_dirstripe() on the client, it also needs to #ifdef ll_send_mgc_param(), mgc_set_mgs_param(), and KEY_SET_INFO in mgc_set_info_async(), since they will all be unused at that point and if that code isn't tagged now for removal it will just sit there dead and/or create compiler warnings.

            Also, the code on the MGS that handles these parameters needs to be #ifdef'd, namely mgs_set_info(), as well as struct mgs_send_param and associated code in wirecheck.c and wiretest.c, since that RPC codepath was already limited to handling only the lov.stripe_* parameters in LU-7661 and will now be completely dead. We might consider to push this out a bit beyond 2.13.52 to allow older clients to continue to work with newer servers, but not much further, e.g. 2.15.52.

            adilger Andreas Dilger added a comment - The change to store the default layout on the root directory was only landed to 2.9.0 via LU-7660 , so disabling this feature in 2.10 already is too agressive. That means a 2.10+ client mounting a 2.8 server will not be able to set the default layout properly. Probably something like > 2.13.53 (i.e. for 2.14 release) is more appropriate, since that would be at least one major maintenance release cycle (usually 3x point releases) beyond the first major maintenance release that it will appear in (somewhere around 2.10 or 2.11). Also, in addition to removing the code in ll_set_dirstripe() on the client, it also needs to #ifdef ll_send_mgc_param() , mgc_set_mgs_param() , and KEY_SET_INFO in mgc_set_info_async() , since they will all be unused at that point and if that code isn't tagged now for removal it will just sit there dead and/or create compiler warnings. Also, the code on the MGS that handles these parameters needs to be #ifdef'd, namely mgs_set_info() , as well as struct mgs_send_param and associated code in wirecheck.c and wiretest.c, since that RPC codepath was already limited to handling only the lov.stripe_* parameters in LU-7661 and will now be completely dead. We might consider to push this out a bit beyond 2.13.52 to allow older clients to continue to work with newer servers, but not much further, e.g. 2.15.52.
            pjones Peter Jones added a comment -

            Landed for 2.9

            pjones Peter Jones added a comment - Landed for 2.9

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21612/
            Subject: LU-8454 llite: normal user can't set FS default stripe
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: a2ba6c0c6e7b22ae31280253cd916fa3e29bd749

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21612/ Subject: LU-8454 llite: normal user can't set FS default stripe Project: fs/lustre-release Branch: master Current Patch Set: Commit: a2ba6c0c6e7b22ae31280253cd916fa3e29bd749

            Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/21612
            Subject: LU-8454 llite: normal user can't set FS default stripe
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e5c12038a4379226bbc00f958e62120347b7c18b

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/21612 Subject: LU-8454 llite: normal user can't set FS default stripe Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e5c12038a4379226bbc00f958e62120347b7c18b

            People

              laisiyao Lai Siyao
              laisiyao Lai Siyao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: