FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-134587: Fix os.mkdir(mode=0o700) under Windows AppContainer by thatnerdyguy · Pull Request #148804 · python/cpython · GitHub

/ cpython Public

gh-134587: Fix os.mkdir(mode=0o700) under Windows AppContainer - #148804

Open
thatnerdyguy wants to merge 4 commits into
python:mainfrom
thatnerdyguy:fix-issue-134587
Open

gh-134587: Fix os.mkdir(mode=0o700) under Windows AppContainer#148804
thatnerdyguy wants to merge 4 commits into
python:mainfrom
thatnerdyguy:fix-issue-134587

Conversation

thatnerdyguy commented Apr 20, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown

In gh-118773, which was a follow up to gh-118488, an SDDL was used to grant a directory created via os.mkdir with mode=0o700 owner, admin, and system control. However, when running under a Windows AppContainer, objects must ALSO allow access for the AppContainer SID.

This changes the logic to do a one time resolution of the SDDL string to use. If we are running under an AppContainer, then the SDDL includes the SID of the AppContainer, otherwise we use the same standard SDDL as before.

In 8af84b5 (pythongh-118773), which was a follow up to 81939da (pythongh-118488), an SDDL was used to grant
a directory created via os.mkdir with mode=0o700 owner, admin, and system control. However,
when running under a Windows AppContainer, objects must ALSO allow access for the AppContainer
SID.

This changes the logic to do a one time resolution of the SDDL string to use. If we are running
under an AppContainer, then the SDDL includes the SID of the AppContainer, otherwise we use the
same standard SDDL as before.

python-cla-bot Bot commented Apr 20, 2026
edited
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

github-actions Bot added the stale Stale PR or inactive for long period of time. label Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL