Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling httpd_can_network_connect flag #21085

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/openqa/install/openqa_bootstrap.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use warnings;
use base "consoletest";
use testapi;
use utils;

use version_utils qw(has_selinux);

sub run {
select_console 'root-console';
Expand All @@ -20,6 +20,10 @@ sub run {
record_info('No nested virt', 'No /dev/kvm found');
}

# allow connect to httpd_port
if (has_selinux) {
script_run('setsebool -P httpd_can_network_connect 1');
}
zypper_call('in openQA-bootstrap');
my $proxy_var = get_var('OPENQA_WEB_PROXY') ? 'setup_web_proxy=' . get_var('OPENQA_WEB_PROXY') . ' ' : '';
assert_script_run($proxy_var . "/usr/share/openqa/script/openqa-bootstrap", 4000);
Expand Down