[LU-4746] Lustre not using kernel current_umask() function breaks GRSecurity umask handling Created: 10/Mar/14 Updated: 18/Feb/15 Resolved: 18/Feb/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.1.5, Lustre 1.8.9, Lustre 2.5.0, Lustre 2.4.2 |
| Fix Version/s: | Lustre 2.7.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andrew Prout | Assignee: | Bob Glossman (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Attachments: |
|
| Severity: | 3 |
| Rank (Obsolete): | 13041 |
| Description |
|
Lustre 2.5.0 (and before) do not use the kernel's default current_umask() function, instead accessing the current process pointer directly with current->fs->umask. On a standard kernel this is equivalent, however on a GRSecurity-enabled kernel there's additional logic in the kernel's current_umask() function that's being skipped. |
| Comments |
| Comment by Andrew Prout [ 10/Mar/14 ] |
|
Patches to fix attached. All affected versions compile normally when calling the Linux kernel's current_umask() function. |
| Comment by Andreas Dilger [ 12/Mar/14 ] |
|
Andrew, |
| Comment by Andrew Prout [ 17/Mar/14 ] |
|
Try #2 on the patches... |
| Comment by Cliff White (Inactive) [ 25/Mar/14 ] |
|
Can you submit the patches to Gerrit for our review process? |
| Comment by Cliff White (Inactive) [ 07/Apr/14 ] |
|
I will push these into Gerritt |
| Comment by Cliff White (Inactive) [ 13/May/14 ] |
|
Patches pushed, in the autotest process |
| Comment by Cliff White (Inactive) [ 13/May/14 ] |
|
http://review.whamcloud.com/#/c/10320/ |
| Comment by Oleg Drokin [ 11/Jun/14 ] |
|
I take it this issue is also present in current master version (upcoming 2.6)? |
| Comment by James A Simmons [ 11/Jun/14 ] |
|
Seems I never got around to cleaning that up in |
| Comment by James A Simmons [ 28/Aug/14 ] |
|
Created the patch for master at http://review.whamcloud.com/#/c/11642 Need to do it anyways for |
| Comment by James A Simmons [ 15/Sep/14 ] |
|
Patch landed for master. Patches for b2_5 and b2_4 still outstanding. |
| Comment by Jodi Levi (Inactive) [ 18/Feb/15 ] |
|
Patch landed to Master. Other version patch landings will be tracked external to this ticket. |