victory play: a start below Medium integrity says why it cannot write, and the icacls fix (#706) #3215
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3215"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-29T20:46:01Z.
From #706.
What happens
On some PCs,
victory playstops at its start:That happens even though
cmdin the same session can create that folder. In #706 it looked random and was blamed on the antivirus. @akabkgod found the cause:victory.execarried a Low integrity label, inherited from the folder it was extracted into (icacls victory.exeshowedMandatory Label\Low Mandatory Level:(I)(NW)).%LOCALAPPDATA%\victoryis one.icacls victory.exe /setintegritylevel Mmade the logger write on the next start.The change
A start below Medium now prints, beside the existing memory warning and before the home folder is created:
integrity_levelreads it from the process token's mandatory label (OpenProcessToken,GetTokenInformation(TokenIntegrityLevel), the SID's last sub-authority).integrity_warningturns the level into the text, and says nothing at Medium and above, or when the level can't be read.apps/victoryaskswindows-sysforWin32_SecurityandWin32_System_Threadingtoo.Cargo.lockdoesn't change.Nothing changes at Medium or High, which is every ordinary start.
Tests
play::tests::a_start_below_medium_integrity_is_warned_with_the_fix:icaclsline;cargo test -p victory --locked: 80, 1 and 2 passed.cargo clippy -p victory --all-targets: nothing inplay.rs.Not run here at Low itself: no PC here has a Low-labelled copy.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.