server: Add THREAD_[SET|QUERY]_LIMITED_INFORMATION to generic access mappings and appropriately change THREAD_ALL_ACCESS.
This commit is contained in:
parent
a0b08adbe4
commit
383f7ba002
|
@ -4553,7 +4553,9 @@ typedef enum tagSID_NAME_USE {
|
||||||
#define THREAD_SET_THREAD_TOKEN 0x0080
|
#define THREAD_SET_THREAD_TOKEN 0x0080
|
||||||
#define THREAD_IMPERSONATE 0x0100
|
#define THREAD_IMPERSONATE 0x0100
|
||||||
#define THREAD_DIRECT_IMPERSONATION 0x0200
|
#define THREAD_DIRECT_IMPERSONATION 0x0200
|
||||||
#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff)
|
#define THREAD_SET_LIMITED_INFORMATION 0x0400
|
||||||
|
#define THREAD_QUERY_LIMITED_INFORMATION 0x0800
|
||||||
|
#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0xffff)
|
||||||
|
|
||||||
#define THREAD_BASE_PRIORITY_LOWRT 15
|
#define THREAD_BASE_PRIORITY_LOWRT 15
|
||||||
#define THREAD_BASE_PRIORITY_MAX 2
|
#define THREAD_BASE_PRIORITY_MAX 2
|
||||||
|
|
|
@ -331,9 +331,10 @@ static int thread_signaled( struct object *obj, struct wait_queue_entry *entry )
|
||||||
|
|
||||||
static unsigned int thread_map_access( struct object *obj, unsigned int access )
|
static unsigned int thread_map_access( struct object *obj, unsigned int access )
|
||||||
{
|
{
|
||||||
if (access & GENERIC_READ) access |= STANDARD_RIGHTS_READ | THREAD_QUERY_INFORMATION | THREAD_GET_CONTEXT;
|
if (access & GENERIC_READ) access |= STANDARD_RIGHTS_READ | THREAD_QUERY_INFORMATION | THREAD_GET_CONTEXT | THREAD_QUERY_LIMITED_INFORMATION;
|
||||||
if (access & GENERIC_WRITE) access |= STANDARD_RIGHTS_WRITE | THREAD_SET_INFORMATION | THREAD_SET_CONTEXT | THREAD_TERMINATE | THREAD_SUSPEND_RESUME;
|
if (access & GENERIC_WRITE) access |= STANDARD_RIGHTS_WRITE | THREAD_SET_INFORMATION | THREAD_SET_CONTEXT |
|
||||||
if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE;
|
THREAD_TERMINATE | THREAD_SUSPEND_RESUME | THREAD_SET_LIMITED_INFORMATION;
|
||||||
|
if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE | THREAD_QUERY_LIMITED_INFORMATION;
|
||||||
if (access & GENERIC_ALL) access |= THREAD_ALL_ACCESS;
|
if (access & GENERIC_ALL) access |= THREAD_ALL_ACCESS;
|
||||||
return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue