third_party/virtualbox/src/VBox/Frontends/VirtualBox/src/main.cpp
/**
 * Override this one to try hide the fact that we're setuid to root
 * orginially.
 */
Override this one to try hide the fact that we're setuid to root
orginially.
Override this one to try hide the fact that we ' re setuid to root orginially .
int issetugid_for_AppKit(void)
{
    Dl_info Info = {0};
    char szMsg[512];
    size_t cchMsg;
    const void * uCaller = __builtin_return_address(0);
    if (dladdr(uCaller, &Info))
        cchMsg = snprintf(szMsg, sizeof(szMsg), "DEBUG: issetugid_for_AppKit was called by %p %s::%s+%p (via %p)\n",
                          uCaller, Info.dli_fname, Info.dli_sname, (void *)((uintptr_t)uCaller - (uintptr_t)Info.dli_saddr), __builtin_return_address(1));
    else
        cchMsg = snprintf(szMsg, sizeof(szMsg), "DEBUG: issetugid_for_AppKit was called by %p (via %p)\n", uCaller, __builtin_return_address(1));
    write(2, szMsg, cchMsg);
    return 0;
}
int issetugid_for_AppKit ( void ) { Dl_info Info = { 0 } ; char szMsg [ 512 ] ; size_t cchMsg ; const void * uCaller = __builtin_return_address ( 0 ) ; if ( dladdr ( uCaller , & Info ) ) cchMsg = snprintf ( szMsg , sizeof ( szMsg ) , " \n " , uCaller , Info . dli_fname , Info . dli_sname , ( void * ) ( ( uintptr_t ) uCaller - ( uintptr_t ) Info . dli_saddr ) , __builtin_return_address ( 1 ) ) ; else cchMsg = snprintf ( szMsg , sizeof ( szMsg ) , " \n " , uCaller , __builtin_return_address ( 1 ) ) ; write ( 2 , szMsg , cchMsg ) ; return 0 ; }
Override this one to try hide the fact that we're setuid to root
 orginially.
Override this one to try hide the fact that we ' re setuid to root orginially .