Bug 1419693

Summary: Detected issue with RHEL 7.3 install /etc/pam.d/system-auth link broken using DISA security policy
Product: Red Hat Enterprise Linux 7 Reporter: Hemant B Khot <hkhot>
Component: scap-security-guideAssignee: Watson Yuuma Sato <wsato>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: cww, hkhot, jstodola, mhaicman, openscap-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-29 21:59:13 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: 1420851    

Description Hemant B Khot 2017-02-06 18:57:09 UTC
Description of problem: Upon installation using DISA security profile , it creates two different files instead of creating link in  /etc/pam.d/.


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


How reproducible: Ever


Steps to Reproduce:

1. Start with normal install. 

2.Setup network and hostname

3.Configure Time and Date

4.Select security policy, choose DISA draft stig server with gui's
Software selection, choose server with gui, select Java Platform, KDE, Network Client, Compatibility Libraries, and Security Tools

5.Configure installation destination, configure per DISA requirements, with ext4. Then create mount points. 

6.Accept changes and begin installation add root password and create generic admin account .

7.Let system finish installing.  


Actual results: It creates 2 different files 
[hemant@dhcp4-96 pam.d]$ ls -l
-rw-r--r--. 1 root root 1252 Feb  2 20:19 system-auth
-rw-r--r--. 1 root root 1015 Feb  2 20:17 system-auth-ac



Expected results:
[root@dhcp4-96 pam.d]#
lrwxrwxrwx. 1 root root   14 Feb  7 00:21 system-auth -> system-auth-ac


Additional info:
Need to Debug the DISA security draft.

Comment 1 Tomas Mraz 2017-02-07 09:54:09 UTC
I am sorry but pam package is not the appropriate component to report bugs against for the DISA security policy settings/installer. This needs to be fixed in the DISA installer - I have no idea which component that is.

Comment 2 Tomas Mraz 2017-02-07 09:55:33 UTC
Also just FYI - when there are both system-auth and system-auth-ac as regular files then the system-auth is used. The system-auth-ac contents is irrelevant.

Comment 7 Samantha N. Bueno 2017-08-03 08:35:08 UTC
This looks like oscap-anaconda-addon. Let's see if they have any input on this issue.

Comment 8 Marek Haicman 2017-11-29 21:59:13 UTC
Hello,
most likely culprit in this case is scap-security-guide, which provides remediation scripts utilized to harden the system.

I have just tried described scenario for RHEL 7.4 installation and links are preserved. So if you don't mind, I will assume it's fixed, thus closing this issue.

If you need it for RHEL 7.3 installation, you can still use datastream from network - use one from scap-security-guide-0.1.33-5.el7

Feel free to reopen if your mileage varies.