Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b2624ab9
Commit
b2624ab9
authored
Sep 08, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove the no longer used VPROT_NOEXEC flag.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08acac08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
virtual.c
dlls/ntdll/virtual.c
+3
-5
server_protocol.h
include/wine/server_protocol.h
+0
-1
protocol.def
server/protocol.def
+0
-1
No files found.
dlls/ntdll/virtual.c
View file @
b2624ab9
...
...
@@ -713,7 +713,7 @@ static NTSTATUS create_view( struct file_view **view_ret, void *base, size_t siz
*
view_ret
=
view
;
VIRTUAL_DEBUG_DUMP_VIEW
(
view
);
if
(
force_exec_prot
&&
!
(
vprot
&
VPROT_NOEXEC
)
&&
(
unix_prot
&
PROT_READ
)
&&
!
(
unix_prot
&
PROT_EXEC
))
if
(
force_exec_prot
&&
(
unix_prot
&
PROT_READ
)
&&
!
(
unix_prot
&
PROT_EXEC
))
{
TRACE
(
"forcing exec permission on %p-%p
\n
"
,
base
,
(
char
*
)
base
+
size
-
1
);
mprotect
(
base
,
size
,
unix_prot
|
PROT_EXEC
);
...
...
@@ -797,8 +797,7 @@ static NTSTATUS get_vprot_flags( DWORD protect, unsigned int *vprot, BOOL image
*/
static
inline
int
mprotect_exec
(
void
*
base
,
size_t
size
,
int
unix_prot
,
unsigned
int
view_protect
)
{
if
(
force_exec_prot
&&
!
(
view_protect
&
VPROT_NOEXEC
)
&&
(
unix_prot
&
PROT_READ
)
&&
!
(
unix_prot
&
PROT_EXEC
))
if
(
force_exec_prot
&&
(
unix_prot
&
PROT_READ
)
&&
!
(
unix_prot
&
PROT_EXEC
))
{
TRACE
(
"forcing exec permission on %p-%p
\n
"
,
base
,
(
char
*
)
base
+
size
-
1
);
if
(
!
mprotect
(
base
,
size
,
unix_prot
|
PROT_EXEC
))
return
0
;
...
...
@@ -1096,7 +1095,7 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
assert
(
start
<
view
->
size
);
assert
(
start
+
size
<=
view
->
size
);
if
(
force_exec_prot
&&
!
(
vprot
&
VPROT_NOEXEC
)
&&
(
vprot
&
VPROT_READ
))
if
(
force_exec_prot
&&
(
vprot
&
VPROT_READ
))
{
TRACE
(
"forcing exec permission on mapping %p-%p
\n
"
,
(
char
*
)
view
->
base
+
start
,
(
char
*
)
view
->
base
+
start
+
size
-
1
);
...
...
@@ -1972,7 +1971,6 @@ void VIRTUAL_SetForceExec( BOOL enable )
{
BYTE
commit
=
view
->
mapping
?
VPROT_COMMITTED
:
0
;
/* file mappings are always accessible */
if
(
view
->
protect
&
VPROT_NOEXEC
)
continue
;
mprotect_range
(
view
,
view
->
base
,
view
->
size
,
commit
,
0
);
}
}
...
...
include/wine/server_protocol.h
View file @
b2624ab9
...
...
@@ -2199,7 +2199,6 @@ struct create_mapping_reply
#define VPROT_IMAGE 0x0100
#define VPROT_SYSTEM 0x0200
#define VPROT_VALLOC 0x0400
#define VPROT_NOEXEC 0x0800
...
...
server/protocol.def
View file @
b2624ab9
...
...
@@ -1711,7 +1711,6 @@ enum char_info_mode
#define VPROT_IMAGE 0x0100 /* mapping for an exe image */
#define VPROT_SYSTEM 0x0200 /* system view (underlying mmap not under our control) */
#define VPROT_VALLOC 0x0400 /* allocated by VirtualAlloc */
#define VPROT_NOEXEC 0x0800 /* don't force exec permission */
/* Open a mapping */
...
...
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