RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 599057 - Incomplete comparison of a service name in IPA access provider
Summary: Incomplete comparison of a service name in IPA access provider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Stephen Gallagher
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 579775
TreeView+ depends on / blocked
 
Reported: 2010-06-02 15:33 UTC by Sumit Bose
Modified: 2015-01-04 23:42 UTC (History)
3 users (show)

Fixed In Version: sssd-1.2.0-13.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 21:39:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sumit Bose 2010-06-02 15:33:16 UTC
Description of problem:
In the IPA access provider the service name is only compared up to the length of the service name retrieved from LDAP, so if the value from LDAP is 'su' it will match 'su', 'su-l', 'sudo', ... This is not intended and should be fixed. 

Version-Release number of selected component (if applicable):
1.2

How reproducible:

Steps to Reproduce:
1. Create a allow rule for 'su' and take care that there is no one for 'su-l' or and other rule that can match 'su-l', e.g. one with servicecategory=all
2. run 'su -l'
  
Actual results:
Access is granted

Expected results:
Access is denied, because there is not rule matching service 'su-l'

Comment 2 Stephen Gallagher 2010-06-02 15:37:23 UTC
Fix is available upstream already.

Comment 3 RHEL Program Management 2010-06-02 15:50:40 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Jenny Severance 2010-08-10 20:34:11 UTC
verified RHEL 6:

hbac su rule:

[root@dhcp-100-3-186 ~]# ipa hbac-show
Rule name: test1
  Rule name: test1
  Rule type: allow
  User category: all
  Source host category: all
  Enabled: TRUE
  Hosts: jennyv2.bos.redhat.com
  Services: su


sssd log:

(Tue Aug 10 16:29:57 2010) [sssd[be[bos.redhat.com]]] [check_service] (9): OriginalDN for service [su-l]: [cn=su-l,cn=hbacservices,cn=accounts,dc=bos,dc=redhat,dc=com].
(Tue Aug 10 16:29:57 2010) [sssd[be[bos.redhat.com]]] [check_service] (9): Service [su-l] was not found in the list of allowed services and service groups.
(Tue Aug 10 16:29:57 2010) [sssd[be[bos.redhat.com]]] [evaluate_ipa_hbac_rules] (9): Current rule does not apply.
(Tue Aug 10 16:29:57 2010) [sssd[be[bos.redhat.com]]] [hbac_get_user_info_done] (3): Access denied.

sssd version:
sssd-1.2.1-26.el6.i686

ipa-client version:
ipa-client-2.0-9.el6.i686

ipa-server version:
ipa-server-1.91-0.2010080617git830910d.fc12.i686

Comment 6 releng-rhel@redhat.com 2010-11-10 21:39:51 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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