+//
+// Remove all ACLs that confer this right.
+//
+void Access::removeAclsForRight(AclAuthorization right) {
+ for (Map::const_iterator it = mAcls.begin(); it != mAcls.end(); ) {
+ if (it->second->authorizesSpecifically(right)) {
+ it = mAcls.erase(it);
+ secinfo("SecAccess", "%p removed an acl, %lu left", this, mAcls.size());
+ } else {
+ it++;
+ }
+ }
+}
+