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
53847fd6
Commit
53847fd6
authored
Feb 06, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix generic access mapping for a process.
parent
531c2b39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
security.c
dlls/advapi32/tests/security.c
+0
-2
process.c
server/process.c
+4
-3
No files found.
dlls/advapi32/tests/security.c
View file @
53847fd6
...
...
@@ -5053,12 +5053,10 @@ static void test_process_access(void)
switch
(
map
[
i
].
generic
)
{
case
GENERIC_READ
:
todo_wine
ok
(
access
==
map
[
i
].
mapped
||
access
==
(
map
[
i
].
mapped
|
PROCESS_QUERY_LIMITED_INFORMATION
)
/* Vista+ */
,
"%d: expected %#x, got %#x
\n
"
,
i
,
map
[
i
].
mapped
,
access
);
break
;
case
GENERIC_WRITE
:
todo_wine
ok
(
access
==
map
[
i
].
mapped
||
access
==
(
map
[
i
].
mapped
|
PROCESS_TERMINATE
)
/* before Vista */
,
"%d: expected %#x, got %#x
\n
"
,
i
,
map
[
i
].
mapped
,
access
);
break
;
...
...
server/process.c
View file @
53847fd6
...
...
@@ -448,9 +448,10 @@ static int process_signaled( struct object *obj, struct wait_queue_entry *entry
static
unsigned
int
process_map_access
(
struct
object
*
obj
,
unsigned
int
access
)
{
if
(
access
&
GENERIC_READ
)
access
|=
STANDARD_RIGHTS_READ
|
SYNCHRONIZE
;
if
(
access
&
GENERIC_WRITE
)
access
|=
STANDARD_RIGHTS_WRITE
|
SYNCHRONIZE
;
if
(
access
&
GENERIC_EXECUTE
)
access
|=
STANDARD_RIGHTS_EXECUTE
;
if
(
access
&
GENERIC_READ
)
access
|=
STANDARD_RIGHTS_READ
|
PROCESS_QUERY_INFORMATION
|
PROCESS_VM_READ
;
if
(
access
&
GENERIC_WRITE
)
access
|=
STANDARD_RIGHTS_WRITE
|
PROCESS_SET_QUOTA
|
PROCESS_SET_INFORMATION
|
PROCESS_SUSPEND_RESUME
|
PROCESS_VM_WRITE
|
PROCESS_DUP_HANDLE
|
PROCESS_CREATE_PROCESS
|
PROCESS_CREATE_THREAD
|
PROCESS_VM_OPERATION
;
if
(
access
&
GENERIC_EXECUTE
)
access
|=
STANDARD_RIGHTS_EXECUTE
|
SYNCHRONIZE
|
PROCESS_TERMINATE
;
if
(
access
&
GENERIC_ALL
)
access
|=
PROCESS_ALL_ACCESS
;
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