Actions
action #98715
closedaction #93441: [sle][security][sle15sp4][CC] CC hand over
[sle][security][sle15sp4][CC] automation: enhance "SYSTEM_ROLE=Common_Criteria" hdd creating related hardcode
Start date:
2021-09-16
Due date:
% Done:
100%
Estimated time:
40.00 h
Difficulty:
Description
In file ".../tests/installation # vi logs_from_installation_system.pm"
We hardcode the "/dev/vda2" as currently we can not figure out a better way to revise "/etc/ssh/sshd_config" file before reboot after/during installation.
This poo aims to track this issue.
# permit ssh root login as it is disabled in "Common Criteria" "System Role" system
if (check_var('SYSTEM_ROLE', 'Common_Criteria') && is_sle) {
record_soft_failure('poo#');
assert_script_run('mount /dev/vda2 /mnt');
assert_script_run("sed -i -e 's/PermitRootLogin/#PermitRootLogin/g' /mnt/etc/ssh/sshd_config");
assert_script_run('echo PermitRootLogin yes >> /mnt/etc/ssh/sshd_config');
assert_script_run('cat /mnt/etc/ssh/sshd_config');
assert_script_run('umount /mnt');
}
Actions