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 867932 - Selinuxusermap rule is not honoured
Summary: Selinuxusermap rule is not honoured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-18 15:21 UTC by Kaleem
Modified: 2013-02-21 09:37 UTC (History)
3 users (show)

Fixed In Version: sssd-1.9.2-4.el6
Doc Type: Bug Fix
Doc Text:
No Documentation Needed
Clone Of:
Environment:
Last Closed: 2013-02-21 09:37:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0508 0 normal SHIPPED_LIVE Low: sssd security, bug fix and enhancement update 2013-02-20 21:30:10 UTC

Comment 2 Jakub Hrozek 2012-10-18 15:36:40 UTC
This is a build-time issue in RHEL only. We need to make sure that we build against the correct selinux-policy version to make sure #855889 is fixed in the buildroot.

Comment 4 Kaleem 2012-10-26 05:11:53 UTC
Verified.
Selinuxusermap rule is working as expected.

RHEL Version:
=============
[root@rhel64master ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.4 Beta (Santiago)
[root@rhel64master ~]#

IPA and SSSD version:
=====================
[root@rhel64master ~]# rpm -qa|grep ipa|sort
ipa-admintools-3.0.0-5.el6.x86_64
ipa-client-3.0.0-5.el6.x86_64
ipa-pki-ca-theme-9.0.3-7.el6.noarch
ipa-pki-common-theme-9.0.3-7.el6.noarch
ipa-python-3.0.0-5.el6.x86_64
ipa-server-3.0.0-5.el6.x86_64
ipa-server-selinux-3.0.0-5.el6.x86_64
libipa_hbac-1.9.2-4.el6.x86_64
libipa_hbac-python-1.9.2-4.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
[root@rhel64master ~]# rpm -qa|grep sssd
sssd-1.9.2-4.el6.x86_64
sssd-client-1.9.2-4.el6.x86_64
[root@rhel64master ~]#

Steps used to verify:
====================
(1)Added a selinuxusermap rule for staff_u

  [root@rhel64master ~]# ipa selinuxusermap-show selinuxusermaprule1 --all
  dn: ipaUniqueID=77b0cdfa-1f2a-11e2-a886-5254005d451f,cn=usermap,cn=selinux,dc=testrelm,dc=com
  Rule name: selinuxusermaprule1
  SELinux User: staff_u:s0-s0:c0.c1023
  Enabled: TRUE
  Users: user1
  Hosts: rhel64client1.testrelm.com
  ipauniqueid: 77b0cdfa-1f2a-11e2-a886-5254005d451f
  objectclass: ipaassociation, ipaselinuxusermap
[root@rhel64master ~]#

(2)Try to get context assigned to user in selinuxusermap rule

[root@rhel64master ~]# kinit user1
Password for user1: 
[root@rhel64master ~]# ssh -l user1 rhel64client1.testrelm.com id -Z
staff_u:staff_r:staff_t:s0-s0:c0.c1023
[root@rhel64master ~]#

Comment 5 errata-xmlrpc 2013-02-21 09:37:44 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/RHSA-2013-0508.html


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