Skip to content

Enable CET Compatibility for Release Builds - #692

Merged
planetchili merged 1 commit into
mainfrom
add-cet-compat
Oct 5, 2026
Merged

planetchili merged 1 commit into
mainfrom
add-cet-compat

Conversation

@markgalvan-intel

Copy link
Copy Markdown
Collaborator

Added /CETCOMPAT to Release builds to enable CET shadow stack compatibility and improve exploit protection for shipped binaries.

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.

Copilot review overview

🟢 Approval recommended

The linker option is correctly scoped to Release builds and reaches all native executable and shared-library targets.

Review effort: Balanced
Findings: None

What changed in this PR

Enables CET shadow-stack compatibility for Release binaries through the shared linker policy.

Changes:

  • Adds /CETCOMPAT to Release linker options.
File Description
cmake/​PresentMonCompiler.cmake Enables CET compatibility for Release executable and DLL links.

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

@planetchili planetchili left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Smart addition, not problems here.

@planetchili
planetchili merged commit 35863c7 into main Oct 5, 2026
1 check passed
@planetchili
planetchili deleted the add-cet-compat branch October 5, 2026 14:24
markgalvan-intel added a commit that referenced this pull request Oct 9, 2026
Brings in #692 (CETCOMPAT), #694 (service unavailable crash), #696 (SCM
auto-healing), #697 (IGCL ctlPowerTelemetryGetV2) and #698 (action pipe
hardening). #698 was written against the two-pipe transport that this
branch replaces, so its changes are carried over by intent:

- Service control pipe DACL (SY full, AU connect mask only): kept, with the
  mandatory label raised from LW to ME so processes below medium integrity
  cannot connect. AU in the DACL does not imply an integrity level.
- Exact client connect access mask: kept unchanged.
- Private control pipe DACL and --control-pipe-allow-au-clients: kept.
- Shared service identity verification in the middleware: kept.
  ResolveConnectedServerProcessId reads the single pipe instead of comparing
  two legs; the middleware uses the client's existing SessionConnector_.
  The middleware contexts move to MiddlewareExecutionContext.h with this
  branch's remotePid-only session context.
- Accept loop robustness: this branch already replaces a listener after
  every accept. Ported the retry: a listener that cannot be created, or that
  fails to accept for a reason other than a vanished client, is replaced
  after 200 ms instead of shrinking the pool or spinning the io thread.
- Removed the SecurityMode::Service and SecurityMode::Child strings, which
  no longer have users.
- Fixed helpers that auto-merged into SymmetricActionClient.h referring to
  members of the old client.
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