Skip to content

fix(systemtest): label stage proxy port as squid_port_t - #654

Merged
Archana-PandeyM merged 2 commits into
mainfrom
arpandey/fixProxyPort
Nov 17, 2026
Merged

Archana-PandeyM merged 2 commits into
mainfrom
arpandey/fixProxyPort

Conversation

@Archana-PandeyM

@Archana-PandeyM Archana-PandeyM commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

The stage tmt prepare step configures insights-client and rhsm.conf to use the no-auth proxy (tcp/3129) but never labels the port. Port 3129 is currently labeled netport_port_t, a type that insights_core_t is not permitted to connect to, so insights-client --check-results gets EACCES on every connect and the AVC checker fails all connect-dependent tests. Label the port via semanage before writing the proxy config.

@Archana-PandeyM
Archana-PandeyM requested a review from a team as a code owner November 12, 2026 15:55
@Archana-PandeyM
Archana-PandeyM marked this pull request as draft November 12, 2026 17:05
@Archana-PandeyM
Archana-PandeyM force-pushed the arpandey/fixProxyPort branch 2 times, most recently from ede2459 to 8b08f7b Compare November 16, 2026 14:38
@Archana-PandeyM
Archana-PandeyM marked this pull request as ready for review November 16, 2026 14:38
Aftermath
Aftermath previously approved these changes Nov 16, 2026
Comment thread systemtest/configure_proxy_stage.py Resolved
stephenbourke
stephenbourke previously approved these changes Nov 17, 2026
mjcr99
mjcr99 previously approved these changes Nov 17, 2026
The stage tmt prepare step configures insights-client and rhsm.conf to
use the no-auth proxy (tcp/3129) but never labels the port. Port 3129 is
pre-assigned to typed netport_port_t, which insights_core_t cannot connect
to, so insights-client --check-results gets EACCES on every connect and
the AVC checker fails all connect-dependent tests.
Label the port via semanage before writing the proxy config.

Signed-off-by: Archana Pandey <arpandey@redhat.com>
@Archana-PandeyM
Archana-PandeyM merged commit 7662357 into main Nov 17, 2026
24 of 29 checks passed
@Archana-PandeyM
Archana-PandeyM deleted the arpandey/fixProxyPort branch November 17, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants