Skip to content

MLE-32902: Fix SUID/SGID permissions on TPM eventlog - #491

Merged
vitalykorolev merged 1 commit into
developfrom
MLE-32902_fix-suid-sgid-permissions
Oct 8, 2026
Merged

vitalykorolev merged 1 commit into
developfrom
MLE-32902_fix-suid-sgid-permissions

Conversation

@vitalykorolev

Copy link
Copy Markdown
Collaborator

Summary

Fixes MLE-32902 by correcting permissions on /run/tpm2-tss/eventlog and adding a smoke-test assertion.

Root cause

The UBI9 tpm2-tss-fapi tmpfiles rule creates the eventlog directory with mode 2775, setting the SGID bit.

Fix

Normalize the rule to 0775, clear existing SUID/SGID bits, and assert the running directory has no special bits.

Validation

  • make lint passed; Hadolint reported only DL3067/DL3064 warnings.
  • D01 Smoke Test passed on built UBI9 x86 and UBI9 rootless images.
  • Post-start checks confirmed tmpfiles mode 0775, directory mode 0775/775, and no SUID/SGID bits.
  • UBI9 ARM platform-stage build passed; no ARM final server image was available.
  • User reports manually triggered Jenkins jobs for the branch are all green.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The targeted fix is consistent across architectures and includes appropriate runtime validation.

0 open findings

What changed in this PR

Corrects UBI9 TPM eventlog permissions to remove SGID/SUID bits across x86 and ARM images.

Changes:

  • Normalizes the tmpfiles rule to 0775.
  • Clears existing special permission bits.
  • Adds a UBI9 smoke-test assertion.
File Description
dockerFiles/​marklogic-deps-ubi9:base Fixes x86 eventlog permissions.
dockerFiles/​marklogic-deps-ubi9-arm:base Applies the equivalent ARM fix.
test/​docker-tests.robot Verifies the eventlog has no SUID/SGID bits.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vitalykorolev
vitalykorolev merged commit 085b89c into develop Oct 8, 2026
6 checks passed
@vitalykorolev
vitalykorolev deleted the MLE-32902_fix-suid-sgid-permissions branch October 8, 2026 22:24
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.

3 participants