`_winapi.CreateJunction` does not restore privilege levels · Issue #114096 · python/cpython · GitHub
Skip to content

_winapi.CreateJunction does not restore privilege levels #114096

Description

@zooba

Creating a junction requires enabling the SE_RESTORE_NAME privilege, which may cause changes in behaviour elsewhere in the process. We should restore it after creating the junction.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixes3.13bugs and security fixesOS-windows

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions