comparison common/util.c @ 1031:1f23803e1f83

Fix linux build. Has_high_integrity is only implemented for windows.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 04 Sep 2014 11:59:01 +0200
parents 6684e5012b7a
children f110a3f6e387
comparison
equal deleted inserted replaced
1030:76cae27b5d83 1031:1f23803e1f83
403 DEBUGPRINTF ("Is system install? %s\n", retval ? "true" : "false"); 403 DEBUGPRINTF ("Is system install? %s\n", retval ? "true" : "false");
404 return retval; 404 return retval;
405 } 405 }
406 #endif 406 #endif
407 407
408 #ifdef WIN32
408 bool 409 bool
409 has_high_integrity(HANDLE hToken) 410 has_high_integrity(HANDLE hToken)
410 { 411 {
411 PTOKEN_MANDATORY_LABEL integrity_label = NULL; 412 PTOKEN_MANDATORY_LABEL integrity_label = NULL;
412 DWORD integrity_level = 0, 413 DWORD integrity_level = 0,
447 448
448 LocalFree (integrity_label); 449 LocalFree (integrity_label);
449 450
450 return integrity_level >= SECURITY_MANDATORY_HIGH_RID; 451 return integrity_level >= SECURITY_MANDATORY_HIGH_RID;
451 } 452 }
453 #endif
452 454
453 bool 455 bool
454 is_elevated() 456 is_elevated()
455 { 457 {
456 bool ret = false; 458 bool ret = false;

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