Skip to content

Commit db83c7c

Browse files
authored
Merge pull request #874 from smallstep/josh/mackms-key-after-first-unlock
Use 'AfterFirstUnlock' for access control of SE keys.
2 parents 2e923c6 + f1da582 commit db83c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kms/mackms/mackms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (k *MacKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyRespons
261261
flags |= security.KSecAccessControlBiometryCurrentSet
262262
}
263263
access, err := security.SecAccessControlCreateWithFlags(
264-
security.KSecAttrAccessibleWhenUnlockedThisDeviceOnly,
264+
security.KSecAttrAccessibleAfterFirstUnlockThisDeviceOnly,
265265
flags,
266266
)
267267
if err != nil {

0 commit comments

Comments
 (0)