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

Grouphandling #250

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Grouphandling #250

wants to merge 5 commits into from

Conversation

Doeme
Copy link

@Doeme Doeme commented Jul 28, 2016

This addresses issue #244
I haven't done any benchmarking, but I'm guessing the performance impact to be marginal.

Dominik Schmidt added 5 commits July 28, 2016 22:43
The grouplist gets read into memory and sorted by mk_user_get_groups,
and they can then be looked for with a binary search in mk_group_in_grouplist.

This will allow us later to check permissions if they correspond to
secondary groups.

Signed-off-by: Dominik Schmidt <[email protected]>
This shortcuts the O(log n) binary-search if the group is the EGID.

Signed-off-by: Dominik Schmidt <[email protected]>
This fills the group-list with the effective secondary groups.

Signed-off-by: Dominik Schmidt <[email protected]>
When we previously accessed a file, which belonged to
an users secondary group, and we actually had permission to read it,
monkey would deliver a 403.

E.g.

-rw-r--r-- 1 dominik httpd 218 18. Jun 2015  index.html

would be reported unreadable, even if the user running monkey was
part of the httpd-group.

Signed-off-by: Dominik Schmidt <[email protected]>
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.

None yet

1 participant