[LU-14797] lfs setquota should be nodemap aware Created: 29/Jun/21 Updated: 28/Jul/22 Resolved: 10/Oct/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.15.0 |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sebastien Buisson | Assignee: | Sebastien Buisson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | nodemap, patch, sec | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
When nodemap is used in conjunction with project quota to restrict clients to a given fileset, it should not be possible to alter other project quotas with lfs setquota. |
| Comments |
| Comment by Sebastien Buisson [ 29/Jun/21 ] |
|
In order to address this requirement, we could add the ability to create id maps of a new type projid, in addition to the already existing uid and gid types. That would also require adding a new value to map_mode. Currently it only groks uid_only, gid_only or both, but we could add a projid_only value. Finally, a new property named squash_projid could be used to map all project ID to a default one. The common case of one projid allowed per nodemap would consist in having a map that just has the projid mapped to itself, the map_mode to projid_only, and deny_unknown set to 1. |
| Comment by Gerrit Updater [ 29/Jun/21 ] |
|
Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/44108 |
| Comment by Gerrit Updater [ 30/Jun/21 ] |
|
Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/44119 |
| Comment by Gerrit Updater [ 10/Oct/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44108/ |
| Comment by Gerrit Updater [ 10/Oct/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44119/ |
| Comment by Peter Jones [ 10/Oct/21 ] |
|
Landed for 2.15 |