Bug 1638105
| Summary: | Passwd does not support ACCT_LOCK & ACCT_UNLOCK audit record type | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Akshay Jain <akjain> |
| Component: | passwd | Assignee: | Jiri Kucera <jkucera> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Houska <jhouska> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.6 | CC: | djez, hhorak, jhouska, ovasik, sgrubb, tbowling |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | passwd-0.79-5.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-06 13:11:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1630904, 1630910, 1660473 | ||
|
Description
Akshay Jain
2018-10-10 17:21:01 UTC
Transferring to passwd since it sends the event. Fixed in upstream commit 137db0d (https://pagure.io/passwd/c/137db0d6f2fd668081133c172ae7726d28ce95b6?branch=master#). VERIFIED OLD PASS: passwd-0.79-4.el7 :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 11:25:26 ] :: [ BEGIN ] :: Looking for audit event :: actually running 'ausearch --start recent -m acct_lock,acct_unlock' <no matches> :: [ 11:25:26 ] :: [ FAIL ] :: Looking for audit event (Expected 0, got 1) :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should contain 'type=ACCT_LOCK' :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should contain 'type=ACCT_UNLOCK' :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should contain 'exe="/usr/bin/passwd"' :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should contain 'res=success' :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should contain 'res=failed' :: [ 11:25:26 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.REk92228' should not contain '<no matches>' --content of /var/tmp/rlRun_LOG.REk92228------------ <no matches> --/content of /var/tmp/rlRun_LOG.REk92228----------- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 0 good, 7 bad :: RESULT: FAIL NEW PASS: passwd-0.79-5.el7 :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 11:25:18 ] :: [ BEGIN ] :: Looking for audit event :: actually running 'ausearch --start recent -m acct_lock,acct_unlock' ---- time->Tue Jun 11 11:23:53 2019 type=ACCT_LOCK msg=audit(1560266633.439:483): pid=17807 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=locked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=success' ---- time->Tue Jun 11 11:23:53 2019 type=ACCT_UNLOCK msg=audit(1560266633.458:484): pid=17824 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=unlocked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=failed' ---- time->Tue Jun 11 11:25:18 2019 type=ACCT_LOCK msg=audit(1560266718.651:732): pid=24315 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=locked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=success' ---- time->Tue Jun 11 11:25:18 2019 type=ACCT_UNLOCK msg=audit(1560266718.671:733): pid=24332 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=unlocked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=failed' :: [ 11:25:18 ] :: [ PASS ] :: Looking for audit event (Expected 0, got 0) :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should contain 'type=ACCT_LOCK' :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should contain 'type=ACCT_UNLOCK' :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should contain 'exe="/usr/bin/passwd"' :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should contain 'res=success' :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should contain 'res=failed' :: [ 11:25:18 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.KR7dwkHG' should not contain '<no matches>' --content of /var/tmp/rlRun_LOG.KR7dwkHG------------ ---- time->Tue Jun 11 11:23:53 2019 type=ACCT_LOCK msg=audit(1560266633.439:483): pid=17807 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=locked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=success' ---- time->Tue Jun 11 11:23:53 2019 type=ACCT_UNLOCK msg=audit(1560266633.458:484): pid=17824 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=unlocked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=failed' ---- time->Tue Jun 11 11:25:18 2019 type=ACCT_LOCK msg=audit(1560266718.651:732): pid=24315 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=locked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=success' ---- time->Tue Jun 11 11:25:18 2019 type=ACCT_UNLOCK msg=audit(1560266718.671:733): pid=24332 uid=0 auid=0 ses=3 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=unlocked-password id=1000 exe="/usr/bin/passwd" hostname=ci-vm-10-0-136-73.hosted.upshift.rdu2.redhat.com addr=? terminal=pts/1 res=failed' --/content of /var/tmp/rlRun_LOG.KR7dwkHG----------- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 7 good, 0 bad :: RESULT: PASS (Test) 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. https://access.redhat.com/errata/RHBA-2019:2257 |