[LU-8454] non-root user is able to change stripe size for mount point Created: 01/Aug/16 Updated: 17/Feb/21 Resolved: 26/Sep/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.8.0 |
| Fix Version/s: | Lustre 2.9.0, Lustre 2.14.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 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. |
| Comments |
| Comment by Gerrit Updater [ 01/Aug/16 ] |
|
Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/21612 |
| Comment by Gerrit Updater [ 22/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21612/ |
| Comment by Peter Jones [ 22/Aug/16 ] |
|
Landed for 2.9 |
| Comment by Andreas Dilger [ 10/Sep/16 ] |
|
The change to store the default layout on the root directory was only landed to 2.9.0 via 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 |
| Comment by Gerrit Updater [ 18/Sep/16 ] |
|
Lai Siyao (lai.siyao@intel.com) uploaded a new patch: http://review.whamcloud.com/22580 |
| Comment by Gerrit Updater [ 26/Sep/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22580/ |
| Comment by Peter Jones [ 26/Sep/16 ] |
|
Landed for 2.9 |
| Comment by Gerrit Updater [ 01/Apr/20 ] |
|
Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38106 |
| Comment by Gerrit Updater [ 06/Apr/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38106/ |