fix(agent): the low integrity label on a folder whose drive gives no WRITE_OWNER #102
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!102
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/label-write-owner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A tester's agent failed a job with:
Setting an integrity label takes WRITE_OWNER, and owning a folder doesn't give that right. An owner can only read and change the permissions.
C:\Usersgives its user full control. A second drive's root usually gives Authenticated Users Modify and nothing more, and the agent's folders under it inherit that. So the DACL grant just before the label works, because the owner can change the DACL, and the label is refused.On access denied,
WinAcl.SetLabelnow gives the agent's own account WRITE_OWNER on that folder, inherited by what it holds, then sets the label again. The owner may always do this. Because the ACE is inherited, later labels under the folder work on the first try. The sandbox's SID gets nothing new. An AppContainer has to be granted access itself, and the runner account is a different user. If the label is still refused, the error now says the agent's account needs full control of the folder.Not built or run here: there is no Windows build on this PC. CI or a Windows tester has to build it.
Until a nightly with this fix is out, the tester can unblock themselves (from a terminal, as the account the agent runs as):
🤖 Generated with Claude Code
WIP: fix(agent): the low integrity label on a folder whose drive gives no WRITE_OWNERto fix(agent): the low integrity label on a folder whose drive gives no WRITE_OWNER