Bug 1376991 - unix_chkpwd is missing dac_read_search capability
Summary: unix_chkpwd is missing dac_read_search capability
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-17 10:26 UTC by Ondrej Moriš
Modified: 2018-04-10 12:25 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.13.1-175.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:24:04 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1278063 0 medium CLOSED Unable to authenticate with PAM for IKEv1 XAUTH 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:25:03 UTC

Internal Links: 1278063

Description Ondrej Moriš 2016-09-17 10:26:36 UTC
Description of problem:

PAM authentication in libreswan (via xauth) fails in pam_unix pluto PAM stack due to missing dac_read_search capability for unix_chkpwd.

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

selinux-policy-3.13.1-97.el7
libreswan-3.15-8.el7

How reproducible:

100%

Steps to Reproduce:

Configure xauthby=pam for libreswan and bring up the connection, for detailed steps please see RHBZ#1278063#c5.

Actual results:

Connection does not work, authentication failure.

# ausearch -ts 12:06:56 -m avc -sv no
----
time->Sat Sep 17 12:06:56 2016
type=PATH msg=audit(1474106816.540:2362): item=0 name="/etc/shadow" inode=67668197 dev=fd:00 mode=0100000 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:shadow_t:s0 objtype=NORMAL
type=CWD msg=audit(1474106816.540:2362):  cwd="/run/pluto"
type=SYSCALL msg=audit(1474106816.540:2362): arch=c000003e syscall=2 success=no exit=-13 a0=7fb186b7c453 a1=80000 a2=1b6 a3=24 items=1 ppid=23533 pid=23668 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="unix_chkpwd" exe="/usr/sbin/unix_chkpwd" subj=system_u:system_r:chkpwd_t:s0 key=(null)
type=AVC msg=audit(1474106816.540:2362): avc:  denied  { dac_read_search } for  pid=23668 comm="unix_chkpwd" capability=2  scontext=system_u:system_r:chkpwd_t:s0 tcontext=system_u:system_r:chkpwd_t:s0 tclass=capability

# ausearch -ts 12:06:56 -m avc -sv no | audit2allow 

#============= chkpwd_t ==============
allow chkpwd_t self:capability dac_read_search;

Expected results:

Successful authentication.

Additional info:

Please see RHBZ#1278063 for more details.

Comment 3 Lukas Vrabec 2016-09-19 10:22:49 UTC
Thank you guys for info, moving to RHEL-7.4

Comment 9 errata-xmlrpc 2018-04-10 12:24:04 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.

https://access.redhat.com/errata/RHBA-2018:0763


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