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
ec862435
Commit
ec862435
authored
May 28, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: When starting a new process, use the token from the calling process, if one exists.
parent
bdf964dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
process.c
server/process.c
+10
-3
No files found.
server/process.c
View file @
ec862435
...
...
@@ -282,7 +282,7 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
process
->
ldt_copy
=
NULL
;
process
->
winstation
=
0
;
process
->
desktop
=
0
;
process
->
token
=
token_create_admin
()
;
process
->
token
=
NULL
;
process
->
trace_data
=
0
;
list_init
(
&
process
->
thread_list
);
list_init
(
&
process
->
locks
);
...
...
@@ -301,15 +301,22 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
if
(
!
(
process
->
msg_fd
=
create_anonymous_fd
(
&
process_fd_ops
,
fd
,
&
process
->
obj
,
0
)))
goto
error
;
/* create the handle table */
if
(
!
parent_thread
)
process
->
handles
=
alloc_handle_table
(
process
,
0
);
if
(
!
parent_thread
)
{
process
->
handles
=
alloc_handle_table
(
process
,
0
);
process
->
token
=
token_create_admin
();
}
else
{
struct
process
*
parent
=
parent_thread
->
process
;
process
->
parent
=
(
struct
process
*
)
grab_object
(
parent
);
process
->
handles
=
inherit_all
?
copy_handle_table
(
process
,
parent
)
:
alloc_handle_table
(
process
,
0
);
/* Note: for security reasons, starting a new process does not attempt
* to use the current impersonation token for the new process */
process
->
token
=
token_duplicate
(
parent
->
token
,
TRUE
,
0
);
}
if
(
!
process
->
handles
)
goto
error
;
if
(
!
process
->
handles
||
!
process
->
token
)
goto
error
;
/* create the main thread */
if
(
pipe
(
request_pipe
)
==
-
1
)
...
...
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