Bug 2096911 - Add support for `lock root account` and `allow root ssh login with password`
Summary: Add support for `lock root account` and `allow root ssh login with password`
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: oscap-anaconda-addon
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Matěj Týč
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-14 14:30 UTC by Marek Haicman
Modified: 2023-08-15 07:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-125235 0 None None None 2022-06-14 14:47:34 UTC
Red Hat Issue Tracker RTT-4909 0 None None None 2022-10-17 16:43:08 UTC
Red Hat Issue Tracker RTT-4910 0 None None None 2022-10-17 16:43:12 UTC
Red Hat Issue Tracker RTT-5253 0 None None None 2023-05-02 10:43:39 UTC

Description Marek Haicman 2022-06-14 14:30:49 UTC
Description of problem:
Anaconda added option to "Allow root SSH login with password" into GUI to circumvent default change in the SSH. As the `scap-security-guide` profiles in many cases require `PermitRootLogin no`, we are directly countering this option. Given the paradigm that whatever is configured by Anaconda is integrated as a special Anaconda-based check, we need it as well.

Version-Release number of selected component (if applicable):
2.0.0-8.el9

How reproducible:
reliably

Steps to Reproduce:
1. begin GUI installation of RHEL9
2. select OSPP profile
3. create root password, tick "allow root ssh login with password"
4. start installation
5. finish installation

Actual results:
no issue is encountered, /etc/ssh/sshd_config contains line
PermitRootLogin no

Expected results:
Installation won't start, as there's conflict of requirements

Additional info:
Anaconda team plans to add kickstart support via Bug 2033849 into 9.1

Comment 2 Marek Haicman 2022-06-15 17:12:20 UTC
To extend expected result:
When the misalignment happens (i.e. profile selected is opinionated about the option and the configuration in the "root password" spoke is not align with that), the addon hub icon should reflect the issue (or the issue can be represented any other way), and installation should not be allowed to start.


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