Bug 1163208

Summary: snapper: user/group name resolution
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: snapperAssignee: Ondrej Kozina <okozina>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: agk, lvm-team, msnitzer, okozina, zkabelac
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: snapper-0.4.1-1 snapper-0.4.1-1.fc25 snapper-0.4.1-1.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1028134 Environment:
Last Closed: 2017-01-14 03:51:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1028133, 1028134    

Description Florian Weimer 2014-11-12 13:30:04 UTC
_SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX are only size *hints*.  Their names are misleading, it is not a maximum size.  snapperd should still loop around the getpwnam_r and getgrnam_r calls and allocate more memory as necessary (on the heap, not the stack).  This is required so that users in many groups and groups with many users can access snapperd.  Affected the functions get_user_uid and get_group_uids in server/MetaSnapper.cc.

Comment 1 Jaroslav Reznik 2015-03-03 16:29:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Fedora End Of Life 2016-07-19 20:52:26 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Florian Weimer 2016-08-26 11:01:20 UTC
Still present in snapper-0.3.3-1.fc26.

Comment 4 Igor Gnatenko 2017-01-06 16:29:36 UTC
Please report this bug to upstream: https://github.com/openSUSE/snapper.

Comment 5 Florian Weimer 2017-01-08 10:39:02 UTC
(In reply to Igor Gnatenko from comment #4)
> Please report this bug to upstream: https://github.com/openSUSE/snapper.

This was fixed upstream in this commit:

commit a081c6c271cf568b753427967b2d835183f3418f
Author: Arvin Schnell <aschnell>
Date:   Wed Nov 2 22:18:26 2016 +0100

    - fixed use of getpwuid_r, getpwnam_r and getgrnam_r

So it should be fixed with the upcoming update to snapper-0.4.1-1.

Comment 6 Fedora Update System 2017-01-08 10:49:15 UTC
snapper-0.4.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5aa20067f5

Comment 7 Fedora Update System 2017-01-08 10:49:25 UTC
snapper-0.4.1-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-fd2d8a03da

Comment 8 Fedora Update System 2017-01-14 03:51:03 UTC
snapper-0.4.1-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-01-19 06:20:04 UTC
snapper-0.4.1-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.