Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crmsh-4.6] Fix: utils: group check failure when os.getgroups() returns empty (bsc#1229030) #1528

Conversation

liangxin1300
Copy link
Collaborator

port from #1513

…c#1229030)

As written in getgroups(2):
It is unspecified whether the effective group ID of the calling process
is included in the returned list. (Thus, an application should also call
getegid(2) and add or remove the resulting value.)

Also use numeric 'haclient' gid instead of text group name, as it
performs less access to the group database
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.65%. Comparing base (8fe60fd) to head (9d55e04).
Report is 12 commits behind head on crmsh-4.6.

Additional details and impacted files
Flag Coverage Δ
integration 53.53% <50.00%> (-0.01%) ⬇️
unit 49.84% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
crmsh/utils.py 67.33% <100.00%> (-0.02%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liangxin1300 liangxin1300 marked this pull request as ready for review August 28, 2024 07:50
@liangxin1300 liangxin1300 merged commit da4203d into ClusterLabs:crmsh-4.6 Aug 29, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants