Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
93e8bea2
Commit
93e8bea2
authored
Aug 21, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Add implicit THREAD_[QUERY|SET]_LIMITED_INFORMATION access.
parent
c1909127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
thread.c
server/thread.c
+6
-2
No files found.
server/thread.c
View file @
93e8bea2
...
...
@@ -338,11 +338,15 @@ static int thread_signaled( struct object *obj, struct wait_queue_entry *entry )
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
|
THREAD_QUERY_LIMITED_INFORMATION
;
if
(
access
&
GENERIC_READ
)
access
|=
STANDARD_RIGHTS_READ
|
THREAD_QUERY_INFORMATION
|
THREAD_GET_CONTEXT
;
if
(
access
&
GENERIC_WRITE
)
access
|=
STANDARD_RIGHTS_WRITE
|
THREAD_SET_INFORMATION
|
THREAD_SET_CONTEXT
|
THREAD_TERMINATE
|
THREAD_SUSPEND_RESUME
|
THREAD_SET_LIMITED_INFORMATION
;
THREAD_TERMINATE
|
THREAD_SUSPEND_RESUME
;
if
(
access
&
GENERIC_EXECUTE
)
access
|=
STANDARD_RIGHTS_EXECUTE
|
SYNCHRONIZE
|
THREAD_QUERY_LIMITED_INFORMATION
;
if
(
access
&
GENERIC_ALL
)
access
|=
THREAD_ALL_ACCESS
;
if
(
access
&
THREAD_QUERY_INFORMATION
)
access
|=
THREAD_QUERY_LIMITED_INFORMATION
;
if
(
access
&
THREAD_SET_INFORMATION
)
access
|=
THREAD_SET_LIMITED_INFORMATION
;
return
access
&
~
(
GENERIC_READ
|
GENERIC_WRITE
|
GENERIC_EXECUTE
|
GENERIC_ALL
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment