Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Created January 4, 2024 20:12
Show Gist options
  • Save jsturtevant/952e85e725308fe288bcdf4c901e767a to your computer and use it in GitHub Desktop.
Save jsturtevant/952e85e725308fe288bcdf4c901e767a to your computer and use it in GitHub Desktop.
termination-log investigation
PS C:\apps> cmd /c ver
Microsoft Windows [Version 10.0.25398.469]
mkdir C:\var\lib\test
new-item -ItemType file -name termination-log -Path C:\var\lib\test
.\ctr.exe i pull registry.k8s.io/e2e-test-images/busybox:1.36.1-1
.\ctr.exe run -rm --mount="src=c:\termination-log,dst=c:\dev\termination-log" --user ContainerUser registry.k8s.io/e2e-test-images/busybox:1.36.1-1 test cmd
cd /dev
echo test > termination-log
Access is denied.
ws2022
icacls .\termination-custom-log
.\termination-custom-log NT AUTHORITY\Authenticated Users:(I)(M)
NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Users:(I)(RX)
20h3
icacls .\termination-custom-log
.\termination-custom-log NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Users:(I)(RX)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment