Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[release/v7.4] Fallback to AppLocker afterWldpCanExecuteFile#25229

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

TravisEz13
Copy link
Member

Backport#24912

This pull request includes several changes to thesrc/System.Management.Automation/security/wldpNativeMethods.cs file to improve the handling of system lockdown policies and file policy enforcement. The changes primarily focus on refining the logic for determining enforcement modes and handling exceptions more effectively.

Key changes include:

Improvements to system lockdown policy handling:

  • Modified theGetSystemLockdownPolicy method to use an out parameter forGetDebugLockdownPolicy.
  • Added a new methodConvertToModernFileEnforcement to convert legacy enforcement modes to modern file enforcement modes.

Enhancements to file policy enforcement:

  • Updated theGetFilePolicyEnforcement method to use the newConvertToModernFileEnforcement method and added logic to handle different enforcement scenarios more accurately.
  • Introduced theTryGetWldpCanExecuteFileResult method to handle the result ofWldpCanExecuteFile and fallback to legacy APIs if necessary.

Exception handling improvements:

  • Refined the exception handling inGetFilePolicyEnforcement to catch bothDllNotFoundException andEntryPointNotFoundException and log the appropriate events.

Additional minor changes:

  • AddedSystem.Diagnostics using directive for better debugging support.
  • Adjusted theGetDebugLockdownPolicy method to use an out parameter for modern enforcement.[1][2][3]

These changes collectively enhance the robustness and accuracy of the system's lockdown policy and file enforcement mechanisms.

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
@TravisEz13TravisEz13 self-assigned thisMar 24, 2025
@TravisEz13TravisEz13 added the CL-EngineIndicates that a PR should be marked as an engine change in the Change Log labelMar 24, 2025
@TravisEz13
Copy link
MemberAuthor

/azp run PowerShell-CI-linux-packaging, PowerShell-Windows-Packaging-CI

@azure-pipelinesAzure Pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Copy link
Collaborator

@SeeminglyScienceSeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM!

@microsoft-github-policy-servicemicrosoft-github-policy-servicebot added the Review - NeededThe PR is being reviewed labelApr 1, 2025
@TravisEz13TravisEz13 merged commit3e5477f intoPowerShell:release/v7.4Apr 4, 2025
34 of 35 checks passed
@TravisEz13TravisEz13 deleted the backport-24912-749 branchApril 4, 2025 22:11
@microsoft-github-policy-serviceMicrosoft GitHub Policy Service
Copy link
Contributor

microsoft-github-policy-servicebot commentedApr 4, 2025
edited by unfurl-linksbot
Loading

📣 Hey @@TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗https://aka.ms/PSRepoFeedback

@microsoft-github-policy-servicemicrosoft-github-policy-servicebot removed the Review - NeededThe PR is being reviewed labelApr 4, 2025
@jshigetomijshigetomi mentioned this pull requestMay 6, 2025
12 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SeeminglyScienceSeeminglyScienceSeeminglyScience approved these changes

Assignees

@TravisEz13TravisEz13

Labels
CL-EngineIndicates that a PR should be marked as an engine change in the Change Log
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@TravisEz13@SeeminglyScience

[8]ページ先頭

©2009-2025 Movatter.jp