comparison common/util.h @ 1118:fd85a02d771d

(issue54) Implement a privilege drop to execute the program after installation. This commit is extremly ugly as I accidentally worked in a working tree that was partially merged with default. To review the real change please check the commit that will merge this branch into default.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 16 Sep 2014 19:45:19 +0200
parents 1c1964c27b39 f110a3f6e387
children 0a803c3fb5a6
comparison
equal deleted inserted replaced
1117:5b6203f78b4e 1118:fd85a02d771d
148 * @returns true if the token has at least high integrity. False on error 148 * @returns true if the token has at least high integrity. False on error
149 * or otherwise. 149 * or otherwise.
150 */ 150 */
151 bool has_high_integrity(HANDLE hToken); 151 bool has_high_integrity(HANDLE hToken);
152 152
153 /** @brief get a restricted access token to execute nss process
154 *
155 * This function uses the Software Restriction API to obtain the
156 * access token for a process run als normal user.
157 *
158 * @returns A restricted handle or NULL on error.
159 */
160 HANDLE get_restricted_token();
161
162 /** @brief get a normal user access token
163 *
164 * The trusted acces token is not elevated but has the normal user rights.
165 *
166 * @returns A normal user handle or NULL on error.
167 */
168 HANDLE get_normal_token();
169
153 #endif 170 #endif
154 171
155 #ifdef __cplusplus 172 #ifdef __cplusplus
156 } 173 }
157 #endif 174 #endif

http://wald.intevation.org/projects/trustbridge/