X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/6b200bc335dc93c5516ccb52f14bd896d8c7fad7..000f55fd2f6b3f7217715c0b319b6af746005756:/OSX/libsecurity_cdsa_utilities/lib/objectacl.cpp?ds=sidebyside diff --git a/OSX/libsecurity_cdsa_utilities/lib/objectacl.cpp b/OSX/libsecurity_cdsa_utilities/lib/objectacl.cpp index 80989e2d..a44c8fa3 100644 --- a/OSX/libsecurity_cdsa_utilities/lib/objectacl.cpp +++ b/OSX/libsecurity_cdsa_utilities/lib/objectacl.cpp @@ -43,7 +43,7 @@ using namespace DataWalkers; // These are the kinds of ACL subjects we can deal with. // ModuleNexus ObjectAcl::makers; -NormalMutex ObjectAcl::makersMutex; +ModuleNexus ObjectAcl::makersMutex; // @@ -579,7 +579,7 @@ void ObjectAcl::AclEntry::importBlob(Reader &pub, Reader &priv) AclSubject::Maker::Maker(CSSM_ACL_SUBJECT_TYPE type) : mType(type) { - StLock _(ObjectAcl::makersMutex); + StLock _(ObjectAcl::makersMutex()); ObjectAcl::makers()[type] = this; } @@ -598,7 +598,7 @@ AclSubject *ObjectAcl::make(uint32 typeAndVersion, Reader &pub, Reader &priv) AclSubject::Maker &ObjectAcl::makerFor(CSSM_ACL_SUBJECT_TYPE type) { - StLock _(ObjectAcl::makersMutex); + StLock _(ObjectAcl::makersMutex()); AclSubject::Maker *maker = makers()[type]; if (maker == NULL) CssmError::throwMe(CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED);