Bug 1563046
Summary: | getlogin_r: return early when linux sentinel value is set | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | DJ Delorie <dj> |
Component: | glibc | Assignee: | Arjun Shankar <ashankar> |
Status: | CLOSED ERRATA | QA Contact: | Sergey Kolosov <skolosov> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.5 | CC: | ashankar, codonell, dj, fweimer, mnewsome, pfrankli, skolosov |
Target Milestone: | rc | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.17-249.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause: The function getlogin_r did not check if /proc/self/loginuid is set to "-1", indicating no logged in user before querying naming services for the corresponding username.
Consequence: On systems configured with networked naming services, getlogin_r took longer to return as it queried via the network for the non-existent UID (-1).
Fix: getlogin_r is now fixed to return immediately after checking for and reading the (-1) UID from /proc/self/loginuid.
Result: getlogin_r returns earlier and does not perform unnecessary name lookups when no user is logged in.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 09:38:06 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: | 1565233 |
Description
DJ Delorie
2018-04-03 03:50:49 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:3092 |