Skip to content

Clear setgid when hardening Windows VM storage directories - #9414

Open
Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:fix/windows-vm-clear-setgid-on-harden
Open

Clear setgid when hardening Windows VM storage directories#9414
Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:fix/windows-vm-clear-setgid-on-harden

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • chmod 0700 on a setgid directory leaves mode 2700, so the exact 700 privacy check failed and launch aborted.
  • Use chmod a-s,u=rwx,go= when hardening storage/shared leaves.

Test plan

  • Launch Windows VM from a setgid-inherited storage path
  • Existing windows-vm mount/compose privacy tests still pass

chmod 0700 on a setgid directory leaves mode 2700, so the exact 700
privacy check failed and launch aborted on inherited setgid paths.
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.

1 participant