• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_keychain/lib/

Lines Matching refs:acl

45 static void setApplications(ACL *acl, CFArrayRef applicationList);
67 SecPointer<ACL> acl = new ACL(*access, cfString(description), *promptSelector);
70 acl->form(ACL::appListForm);
71 setApplications(acl, applicationList);
74 acl->form(ACL::allowAllForm);
76 access->add(acl.get());
77 Required(newAcl) = acl->handle();
117 SecPointer<ACL> acl = ACL::required(aclRef);
118 switch (acl->form()) {
122 acl->promptDescription().empty() ? NULL
123 : makeCFString(acl->promptDescription());
124 Required(promptSelector) = acl->promptSelector();
128 makeCFArray(convert, acl->applications());
129 Required(promptDescription) = makeCFString(acl->promptDescription());
130 Required(promptSelector) = acl->promptSelector();
138 OSStatus SecACLCopyContents(SecACLRef acl,
147 err = SecACLCopySimpleContents(acl, applicationList, description, &cdsaPromptSelector);
157 SecPointer<ACL> acl = ACL::required(aclRef);
158 acl->promptDescription() = description ? cfString(description) : "";
159 acl->promptSelector() = promptSelector ? *promptSelector : ACL::defaultSelector;
162 acl->form(ACL::appListForm);
163 setApplications(acl, applicationList);
166 acl->form(ACL::allowAllForm);
168 acl->modify();
172 OSStatus SecACLSetContents(SecACLRef acl,
180 return SecACLSetSimpleContents(acl, applicationList, description, &cdsaPromptSelector);
186 static void setApplications(ACL *acl, CFArrayRef applicationList)
188 ACL::ApplicationList &appList = acl->applications();
201 OSStatus SecACLGetAuthorizations(SecACLRef acl,
205 AclAuthorizationSet auths = ACL::required(acl)->authorizations();
215 CFArrayRef SecACLCopyAuthorizations(SecACLRef acl)
218 if (NULL == acl)
223 AclAuthorizationSet auths = ACL::required(acl)->authorizations();
233 OSStatus err = SecACLGetAuthorizations(acl, tags, &numAuths);
264 SecPointer<ACL> acl = ACL::required(aclRef);
265 if (acl->isOwner()) // can't change rights of the owner ACL
267 AclAuthorizationSet &auths = acl->authorizations();
270 acl->modify();
274 OSStatus SecACLUpdateAuthorizations(SecACLRef acl, CFArrayRef authorizations)
276 if (NULL == acl || NULL == authorizations)
291 OSStatus result = SecACLSetAuthorizations(acl, tags, tagCount);