Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 902716 - Rule mismatch isn't noticed before smart refresh on ppc64 and s390x
Rule mismatch isn't noticed before smart refresh on ppc64 and s390x
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd (Show other bugs)
6.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jakub Hrozek
Kaushik Banerjee
:
Depends On:
Blocks: 905536
  Show dependency treegraph
 
Reported: 2013-01-22 05:28 EST by Nikolai Kondrashov
Modified: 2013-02-21 04:43 EST (History)
6 users (show)

See Also:
Fixed In Version: sssd-1.9.2-79.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-21 04:43:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
mismatch_refresh_test.ldif (3.47 KB, text/plain)
2013-01-22 05:29 EST, Nikolai Kondrashov
no flags Details
sssd.conf (677 bytes, text/plain)
2013-01-22 05:30 EST, Nikolai Kondrashov
no flags Details
mismatch_refresh_test.ldif (3.47 KB, text/plain)
2013-01-22 05:32 EST, Nikolai Kondrashov
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0508 normal SHIPPED_LIVE Low: sssd security, bug fix and enhancement update 2013-02-20 16:30:10 EST

  None (edit)
Description Nikolai Kondrashov 2013-01-22 05:28:39 EST
Description of problem:
SSSD doesn't notice rule becoming a mismatch immediately, but only after a smart refresh on ppc64 and s390x with directory server running on x86_64.

Version-Release number of selected component (if applicable):
sssd-client-1.9.2-74.el6.s390x
libsss_idmap-1.9.2-74.el6.s390x
libsss_sudo-1.9.2-74.el6.s390x
sssd-1.9.2-74.el6.s390x

How reproducible:
always

Steps to Reproduce:
1. Setup LDAP directory, using the attached mismatch_refresh_test.ldif file as reference.
2. Setup SSSD client using the attached sssd.conf as reference.
3. Execute the following, replacing the server hostname:
---:<---
service sssd restart >/dev/null
ldapmodify -h dell-pe840-01.rhts.eng.bos.redhat.com -x -D cn=Manager,dc=example,dc=com -w Secret123 <<<"
dn: cn=test,ou=Sudoers,dc=example,dc=com
replace: sudoUser
sudoUser: user2" >/dev/null
su -c 'sudo -u user2 true' user1 && echo ALLOWED || echo DENIED
sleep 11
su -c 'sudo -u user2 true' user1 && echo ALLOWED || echo DENIED
--->:---

Actual results:
ALLOWED
user1 is not allowed to run sudo on ibm-z10-02.  This incident will be reported.
DENIED

Expected results:
user1 is not allowed to run sudo on ibm-z10-02.  This incident will be reported.
DENIED
user1 is not allowed to run sudo on ibm-z10-02.  This incident will be reported.
DENIED

Additional info:
This works as documented on x86_64 and i386.

Use the following command for test teardown, replacing the server hostname:
---:<---
ldapmodify  -h dell-pe840-01.rhts.eng.bos.redhat.com -x -D cn=Manager,dc=example,dc=com -w Secret123 <<<"
dn: cn=test,ou=Sudoers,dc=example,dc=com
replace: sudoUser
sudoUser: user1" >/dev/null
--->:---
Comment 1 Nikolai Kondrashov 2013-01-22 05:29:37 EST
Created attachment 685018 [details]
mismatch_refresh_test.ldif
Comment 2 Nikolai Kondrashov 2013-01-22 05:30:02 EST
Created attachment 685019 [details]
sssd.conf
Comment 3 Nikolai Kondrashov 2013-01-22 05:32:20 EST
Created attachment 685034 [details]
mismatch_refresh_test.ldif
Comment 5 Nikolai Kondrashov 2013-01-22 05:51:39 EST
I'd say this bug could lead to a security issue, where an administrator would expect access right revocation to become effective immediately on ppc64 or s390x, similarly to what happens on i386 or x86_64, and not only after smart refresh interval, which could be set noticeably long.
Comment 6 Pavel Březina 2013-01-22 06:49:21 EST
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1779
Comment 7 Pavel Březina 2013-01-22 06:53:55 EST
Hi,
can you please attach logs? Also, would you be so kind as to prepare me test environment on these architectures? Thanks.
Comment 8 Jakub Hrozek 2013-01-22 07:10:18 EST
(In reply to comment #7)
> Hi,
> can you please attach logs? Also, would you be so kind as to prepare me test
> environment on these architectures? Thanks.

Details on reproduction environment were passed on IRC.
Comment 10 Nikolai Kondrashov 2013-01-29 13:49:08 EST
Verified as fixed with the following packages:
sssd-client-1.9.2-82.el6.s390x
libsss_idmap-1.9.2-82.el6.s390x
sssd-1.9.2-82.el6.s390x
libsss_sudo-1.9.2-82.el6.s390x

Relevant sudo suite output:

:: [   PASS   ] :: refresh_mod_rule_user_to_mismatch
Comment 11 errata-xmlrpc 2013-02-21 04:43:49 EST
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.