Searched refs:AuthItemRef (Results 1 - 17 of 17) sorted by relevance

/macosx-10.10.1/Security-57031.1.35/Security/include/security_cdsa_utilities/
H A DAuthorizationData.h104 class AuthItemRef;
108 friend class AuthItemRef;
144 class AuthItemRef : public RefPointer<AuthItem> class in namespace:Authorization
147 AuthItemRef(const AuthorizationItem &item);
148 AuthItemRef(AuthorizationString name);
149 AuthItemRef(AuthorizationString name, AuthorizationValue value, AuthorizationFlags flags = 0);
151 bool operator < (const AuthItemRef &other) const
158 class AuthItemSet : public set<AuthItemRef>
186 bool operator()( const AuthItemRef& authitem )
H A DAuthorizationData.cpp250 AuthItemRef::AuthItemRef(const AuthorizationItem &item) : RefPointer<AuthItem>(new AuthItem(item)) {} function in class:Authorization::AuthItemRef
252 AuthItemRef::AuthItemRef(AuthorizationString name) : RefPointer<AuthItem>(new AuthItem(name)) {} function in class:Authorization::AuthItemRef
254 AuthItemRef::AuthItemRef(AuthorizationString name, AuthorizationValue value, AuthorizationFlags flags) : RefPointer<AuthItem>(new AuthItem(name, value, flags)) {} function in class:Authorization::AuthItemRef
277 insert(AuthItemRef(itemSet.items[i]));
285 std::set<AuthItemRef>::operator=(itemSet);
303 insert(AuthItemRef(itemSet->items[i]));
308 : std::set<AuthItemRef>(itemSe
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_cdsa_utilities/lib/
H A DAuthorizationData.h104 class AuthItemRef;
108 friend class AuthItemRef;
144 class AuthItemRef : public RefPointer<AuthItem> class in namespace:Authorization
147 AuthItemRef(const AuthorizationItem &item);
148 AuthItemRef(AuthorizationString name);
149 AuthItemRef(AuthorizationString name, AuthorizationValue value, AuthorizationFlags flags = 0);
151 bool operator < (const AuthItemRef &other) const
158 class AuthItemSet : public set<AuthItemRef>
186 bool operator()( const AuthItemRef& authitem )
H A DAuthorizationData.cpp250 AuthItemRef::AuthItemRef(const AuthorizationItem &item) : RefPointer<AuthItem>(new AuthItem(item)) {} function in class:Authorization::AuthItemRef
252 AuthItemRef::AuthItemRef(AuthorizationString name) : RefPointer<AuthItem>(new AuthItem(name)) {} function in class:Authorization::AuthItemRef
254 AuthItemRef::AuthItemRef(AuthorizationString name, AuthorizationValue value, AuthorizationFlags flags) : RefPointer<AuthItem>(new AuthItem(name, value, flags)) {} function in class:Authorization::AuthItemRef
277 insert(AuthItemRef(itemSet.items[i]));
285 std::set<AuthItemRef>::operator=(itemSet);
303 insert(AuthItemRef(itemSet->items[i]));
308 : std::set<AuthItemRef>(itemSe
[all...]
/macosx-10.10.1/Security-57031.1.35/securityd/src/
H A DAuthorizationRule.h46 OSStatus evaluate(const AuthItemRef &inRight, const Rule &inRule, AuthItemSet &environmentToClient,
58 OSStatus evaluateCredentialForRight(const AuthorizationToken &auth, const AuthItemRef &inRight, const Rule &inRule,
61 OSStatus evaluateUserCredentialForRight(const AuthorizationToken &auth, const AuthItemRef &inRight, const Rule &inRule, const AuthItemSet &environment, CFAbsoluteTime now, const Credential &credential, bool ignoreShared, SecurityAgent::Reason &reason) const;
63 OSStatus evaluateRules(const AuthItemRef &inRight, const Rule &inRule,
68 void setAgentHints(const AuthItemRef &inRight, const Rule &inTopLevelRule, AuthItemSet &environmentToClient, AuthorizationToken &auth) const;
71 OSStatus evaluateAuthentication(const AuthItemRef &inRight, const Rule &inRule, AuthItemSet &environmentToClient, AuthorizationFlags flags, CFAbsoluteTime now, const CredentialSet *inCredentials, CredentialSet &credentials, AuthorizationToken &auth, SecurityAgent::Reason &reason, bool savePassword) const;
73 OSStatus evaluateUser(const AuthItemRef &inRight, const Rule &inRule,
78 OSStatus evaluateMechanismOnly(const AuthItemRef &inRight, const Rule &inRule, AuthItemSet &environmentToClient, AuthorizationToken &auth, CredentialSet &outCredentials, bool savePassword) const;
81 OSStatus evaluateSessionOwner(const AuthItemRef &inRight, const Rule &inRule, const AuthItemSet &environment, const CFAbsoluteTime now, const AuthorizationToken &auth, Credential &credential, SecurityAgent::Reason &reason) const;
H A Dagentquery.cpp414 mClientHints.insert(AuthItemRef(item));
518 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
519 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(guestPath)));
520 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
521 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));
529 clientImmutableHints.insert(AuthItemRef(AGENT_HINT_PROCESS_SIGNED, AuthValueOverlay(sizeof(validSignature), &validSignature)));
537 mClientHints.insert(AuthItemRef(item));
598 AuthItemRef nextItem(name, AuthValueOverlay((uint32_t)length, dataCopy), (uint32_t)flags);
682 AuthItemRef item = *i;
803 hints.insert(AuthItemRef(AGENT_HINT_ACL_TA
[all...]
H A Dauthority.cpp41 using Authorization::AuthItemRef;
250 tempSet.insert(AuthItemRef(*found));
269 const AuthItemRef &item = *it;
289 AuthItemRef uidHint("uid", AuthValueOverlay(sizeof(uid), &uid));
292 AuthItemRef userHint("username", AuthValueOverlay(inCred->name()), 0);
313 const AuthItemRef &item = *it;
H A DAuthorizationRule.cpp391 RuleImpl::setAgentHints(const AuthItemRef &inRight, const Rule &inTopLevelRule, AuthItemSet &environmentToClient, AuthorizationToken &auth) const
394 environmentToClient.erase(AuthItemRef(AGENT_HINT_AUTHORIZE_RIGHT));
395 environmentToClient.insert(AuthItemRef(AGENT_HINT_AUTHORIZE_RIGHT, AuthValueOverlay(authorizeString)));
398 environmentToClient.erase(AuthItemRef(AGENT_HINT_CREATOR_PID));
399 environmentToClient.insert(AuthItemRef(AGENT_HINT_CREATOR_PID, AuthValueOverlay(sizeof(pid_t), &creatorPid)));
402 environmentToClient.erase(AuthItemRef(AGENT_HINT_CREATOR_AUDIT_TOKEN));
403 environmentToClient.insert(AuthItemRef(AGENT_HINT_CREATOR_AUDIT_TOKEN, AuthValueOverlay(sizeof(audit_token_t), &creatorAuditToken)));
411 environmentToClient.erase(AuthItemRef(AGENT_HINT_CLIENT_TYPE));
412 environmentToClient.erase(AuthItemRef(AGENT_HINT_CLIENT_PATH));
413 environmentToClient.erase(AuthItemRef(AGENT_HINT_CLIENT_PI
[all...]
H A DAuthorizationDBPlist.h51 Rule getRule(const AuthItemRef &inRight) const;
H A DAuthorizationEngine.cpp147 std::vector<AuthItemRef> tempRights;
156 std::vector<AuthItemRef>::const_iterator end = tempRights.end();
157 for (std::vector<AuthItemRef>::const_iterator it = tempRights.begin(); it != end; ++it)
302 rights.insert(AuthItemRef(rightnameToCheck.c_str()));
H A DAuthorizationMechEval.cpp199 AuthItemRef retryHint(AGENT_HINT_RETRY_REASON, AuthValueOverlay(sizeof(reason), &reason));
232 const AuthItemRef &item = *it;
245 const AuthItemRef &item = *it;
H A DAuthorizationDBPlist.cpp326 AuthItemRef candidateRule(ruleName.c_str());
337 AuthorizationDBPlist::getRule(const AuthItemRef &inRight) const
/macosx-10.10.1/Security-57031.1.35/securityd/libsecurity_agent/lib/
H A Dagentclient.cpp44 using Authorization::AuthItemRef;
209 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
210 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(path)));
211 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
212 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));
/macosx-10.10.1/Security-57031.1.35/securityd/libsecurity_agent/security_agent_client/
H A Dagentclient.cpp44 using Authorization::AuthItemRef;
209 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
210 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(path)));
211 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
212 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));
/macosx-10.10.1/Security-57031.1.35/securityd/security_agent_client/
H A Dagentclient.cpp44 using Authorization::AuthItemRef;
209 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
210 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(path)));
211 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
212 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));
/macosx-10.10.1/Security-57031.1.35/securityd/security_agent_server/
H A Dagentclient.cpp44 using Authorization::AuthItemRef;
209 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
210 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(path)));
211 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
212 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));
/macosx-10.10.1/libsecurity_agent-55000/lib/
H A Dagentclient.cpp44 using Authorization::AuthItemRef;
199 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_TYPE, AuthValueOverlay(sizeof(type), &type)));
200 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PATH, AuthValueOverlay(path)));
201 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_PID, AuthValueOverlay(sizeof(clientPid), &clientPid)));
202 clientHints.insert(AuthItemRef(AGENT_HINT_CLIENT_UID, AuthValueOverlay(sizeof(clientUid), &clientUid)));

Completed in 427 milliseconds