[LU-11101] project inherit should only be changed by root Created: 26/Jun/18  Updated: 07/Jan/19  Resolved: 02/Nov/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Currently inherit attribute could be changed by FS_IOC_FSSETXATTR
and FS_IOC_SETFLAGS, we have permission check for FS_IOC_FSSETXATTR
,but FS_IOC_SETFLAGS could be done with regular users.

Regular users could use this to clear directory inherit attribute which could break directory quota.



 Comments   
Comment by Joseph Gmitter (Inactive) [ 26/Jun/18 ]

Hi Wang Shilong,

Were you planning on submitting a patch for this?

Thanks.

Joe

Comment by Wang Shilong (Inactive) [ 27/Jun/18 ]

https://review.whamcloud.com/32730

Comment by Gerrit Updater [ 02/Nov/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32730/
Subject: LU-11101 quota: fix setattr project check
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2d3bbce0c9f3170e16eeeeb1cd29d3372d726260

Comment by Peter Jones [ 02/Nov/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:40:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.