| Summary: | "sudo -l -U user" may show incorrect privileges for specified user | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Rubio <_rubio_> | ||||
| Component: | sudo | Assignee: | Daniel Kopeček <dkopecek> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Aleš Mareček <amarecek> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 6.2 | CC: | amarecek, atolani, cww, ffotorel, jrieden, liko, pvrabec, rdassen, rsawhill | ||||
| Target Milestone: | rc | Keywords: | ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | sudo-1.7.4p5-8.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: |
The "-l" option is used to list allowed and forbidden commands for the invoking user or for the user specified by the "-U" option. However, previously, the getgrouplist() function incorrectly checked the invoker's group membership instead of the membership of the specified user. Consequently, using the "sudo" command with both the "-l" and "-U" options listed privileges granted to any group the invoker was a member of. The getgrouplist() function has been fixed to properly check the group membership of the intended user rather than checking the invoker's membership. This ensures that the required output is listed when using the "-l" and "-U options.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 801807 (view as bug list) | Environment: | |||||
| Last Closed: | 2012-06-20 14:18:58 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 801807, 811879 | ||||||
| Attachments: |
|
||||||
|
Description
Rubio
2012-02-26 11:38:59 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
The "-l" option is used to list allowed and forbidden commands for the invoking user or for the user specified by the "-U" option. However, previously, the getgrouplist() function incorrectly checked the invoker's group membership instead of the membership of the specified user. Consequently, using the "sudo" command with both the "-l" and "-U" options listed privileges granted to any group the invoker was a member of. The getgrouplist() function has been fixed to properly check the group membership of the intended user rather than checking the invoker's membership. This ensures that the required output is listed when using the "-l" and "-U options.
*** Bug 819040 has been marked as a duplicate of this bug. *** As far as I can tell this is a full duplicate of the now closed/fixed 811879. Am I missing something? (In reply to comment #10) > As far as I can tell this is a full duplicate of the now closed/fixed > 811879. The defect is the same in both, but the release streams that are being targeted are different. This bug was opened first. It was used to request a fix in RHEL 6.3. After this request was granted, and in light of the impact of this issue, a decision was made to request an accelerated fix in the form of an asynchronous erratum. To track this, bug #811879 was cloned from this one (cf. private comment #5). Now that bug #811879 is closed through the release of an asynchronous erratum, we must assure that there will be no regression of this defect for customers who have installed the erratum and proceed to update to 6.3, and that's the current role of this bug #797511. 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. http://rhn.redhat.com/errata/RHBA-2012-0905.html |