Bug 811879 - "sudo -l -U user" may show incorrect privileges for specified user
Summary: "sudo -l -U user" may show incorrect privileges for specified user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sudo
Version: 6.2
Hardware: All
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Daniel Kopeček
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
: 801807 (view as bug list)
Depends On: 797511
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-12 08:32 UTC by RHEL Program Management
Modified: 2018-11-27 20:40 UTC (History)
10 users (show)

Fixed In Version: sudo-1.7.4p5-9.el6_2
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.
Clone Of:
Environment:
Last Closed: 2012-05-10 06:38:02 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0565 0 normal SHIPPED_LIVE sudo bug fix update 2012-05-10 10:18:20 UTC

Description RHEL Program Management 2012-04-12 08:32:03 UTC
This bug has been copied from bug #797511 and has been proposed
to be backported to 6.2 z-stream (EUS).

Comment 6 Eliska Slobodova 2012-04-25 11:31:11 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.

Comment 7 Jiri Pallich 2012-05-09 11:20:30 UTC
*** Bug 801807 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2012-05-10 06:38:02 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.

http://rhn.redhat.com/errata/RHBA-2012-0565.html


Note You need to log in before you can comment on or make changes to this bug.