core/win32/os.c
/* For case 8749: can't aslr dr for thin_client because cygwin apps will die. */
For case 8749: can't aslr dr for thin_client because cygwin apps will die.
For case 8749 : can ' t aslr dr for thin_client because cygwin apps will die .
static bool
is_child_in_thin_client(HANDLE process_handle)
{
    bool res;
    const options_t *opts;
    ASSERT(process_handle != NT_CURRENT_PROCESS && 
           process_handle != NT_CURRENT_THREAD && process_handle != NULL);
    opts = get_process_options(process_handle);
    ASSERT_OWN_READWRITE_LOCK(true, &options_lock);
    ASSERT(opts != NULL);
    if (opts == NULL) {
        res = false;
    } else {
        res = opts->thin_client;
    }
    write_unlock(&options_lock);
    return res;
}
static bool is_child_in_thin_client ( HANDLE process_handle ) { bool res ; const options_t * opts ; ASSERT ( process_handle != NT_CURRENT_PROCESS && process_handle != NT_CURRENT_THREAD && process_handle != NULL ) ; opts = get_process_options ( process_handle ) ; ASSERT_OWN_READWRITE_LOCK ( true , & options_lock ) ; ASSERT ( opts != NULL ) ; if ( opts == NULL ) { res = false ; } else { res = opts -> thin_client ; } write_unlock ( & options_lock ) ; return res ; }
For case 8749: can't aslr dr for thin_client because cygwin apps will die.
For case 8749 : can ' t aslr dr for thin_client because cygwin apps will die .
/* Shouldn't be using this for the current process. */ /* In this case the option is used only for preventing aslr_dr, so be safe
     * if you can't read it and say yes which will prevent aslr dr.  Note: this
     * isn't the secure option, which is to say no, so that we alsr dr.
     * Interesting tradeoff; choosing safety as this scenario is rare in which
     * case first goal is to do no harm.
     */