+
+ // findAclsForRight may return ACLs that have an empty authorization list (and thus "authorize everything")
+ // or CSSM_ACL_AUTHORIZATION_ANY, but sometimes you need positive confirmation of a right.
+ template <class Container>
+ void findSpecificAclsForRight(AclAuthorization right, Container &cont)
+ {
+ cont.clear();
+ for (Map::const_iterator it = mAcls.begin(); it != mAcls.end(); it++)
+ if (it->second->authorizesSpecifically(right))
+ cont.push_back(it->second);
+ }
+
+ // Remove all acl entries that refer to this right.
+ void removeAclsForRight(AclAuthorization right);