Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/devicetrust/native/device_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func setupDeviceStateDir(getBaseDir func() (string, error)) (*deviceState, error
case os.IsNotExist(err):
// If it doesn't exist, we can create it and return as we know
// the perms are correct as we created it.
if err := os.Mkdir(deviceStateDirPath, 700); err != nil {
if err := os.Mkdir(deviceStateDirPath, 0700); err != nil {
return nil, trace.Wrap(err)
}
case err != nil:
Expand Down Expand Up @@ -146,7 +146,7 @@ func createAndSaveAK(
if err != nil {
return nil, trace.Wrap(err, "marshalling ak")
}
err = os.WriteFile(persistencePath, ref, 600)
err = os.WriteFile(persistencePath, ref, 0600)
if err != nil {
return nil, trace.Wrap(err, "writing ak to disk")
}
Expand Down