X-Git-Url: https://git.saurik.com/apple/securityd.git/blobdiff_plain/eeadf2e6470f45ea0275a6019635573f2a7b5a2c..24a291535d44686bc7959c7e398fab040e3e08a7:/src/AuthorizationEngine.cpp diff --git a/src/AuthorizationEngine.cpp b/src/AuthorizationEngine.cpp index a2d0f6e..0a41fd1 100644 --- a/src/AuthorizationEngine.cpp +++ b/src/AuthorizationEngine.cpp @@ -3,8 +3,6 @@ * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -133,6 +131,8 @@ Engine::authorize(const AuthItemSet &inRights, const AuthItemSet &environment, if (username.length()) { + // Call to checkpw in DS + Server::active().longTermActivity(); // Let's create a credential from the passed in username and password. Credential newCredential(username, password, shared); // If it's valid insert it into the credentials list. Normally this is @@ -155,9 +155,9 @@ Engine::authorize(const AuthItemSet &inRights, const AuthItemSet &environment, secdebug("autheval", "evaluate rule %s for right %s returned %ld.", toplevelRule->name().c_str(), (*it)->name(), result); { - CodeSigning::OSXCode *processCode = Server::process().clientCode(); + RefPointer processCode = Server::process().clientCode(); string processName = processCode ? processCode->canonicalPath() : "unknown"; - CodeSigning::OSXCode *authCreatorCode = auth.creatorCode(); + RefPointer authCreatorCode = auth.creatorCode(); string authCreatorName = authCreatorCode ? authCreatorCode->canonicalPath() : "unknown"; if (result == errAuthorizationSuccess)