MCPcopy Create free account
hub / github.com/apache/mesos / foreach

Method foreach

src/authorizer/local/authorizer.cpp:459–463  ·  view source on GitHub ↗

Authorize subject/object.

Source from the content-addressed store, hash-verified

457 {
458 // Authorize subject/object.
459 foreach (const GenericACL& acl, acls) {
460 if (matches(subject, acl.subjects) && matches(object, acl.objects)) {
461 return allows(subject, acl.subjects) && allows(object, acl.objects);
462 }
463 }
464
465 return permissive_; // None of the ACLs match.
466 }

Callers

nothing calls this directly

Calls 2

matchesFunction · 0.85
allowsFunction · 0.85

Tested by

no test coverage detected