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
0e42bce0
Commit
0e42bce0
authored
Feb 03, 2017
by
Sebastian Lackner
Committed by
Alexandre Julliard
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix handling of MAXIMUM_ALLOWED in token_access_check.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a39d67d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
security.c
dlls/advapi32/tests/security.c
+6
-0
token.c
server/token.c
+4
-1
No files found.
dlls/advapi32/tests/security.c
View file @
0e42bce0
...
...
@@ -1376,6 +1376,12 @@ static void test_AccessCheck(void)
ok
(
AccessStatus
&&
(
Access
==
KEY_READ
),
"AccessCheck failed to grant access with error %d
\n
"
,
GetLastError
());
ret
=
AccessCheck
(
SecurityDescriptor
,
Token
,
MAXIMUM_ALLOWED
,
&
Mapping
,
PrivSet
,
&
PrivSetLen
,
&
Access
,
&
AccessStatus
);
ok
(
ret
,
"AccessCheck failed with error %d
\n
"
,
GetLastError
());
ok
(
AccessStatus
&&
(
Access
==
KEY_ALL_ACCESS
),
"AccessCheck failed to grant access with error %d
\n
"
,
GetLastError
());
/* sd with blank dacl */
ret
=
SetSecurityDescriptorDacl
(
SecurityDescriptor
,
TRUE
,
Acl
,
FALSE
);
...
...
server/token.c
View file @
0e42bce0
...
...
@@ -844,7 +844,10 @@ static unsigned int token_access_check( struct token *token,
if
(
!
dacl_present
||
!
dacl
)
{
if
(
priv_count
)
*
priv_count
=
0
;
*
granted_access
=
desired_access
;
if
(
desired_access
&
MAXIMUM_ALLOWED
)
*
granted_access
=
mapping
->
GenericAll
;
else
*
granted_access
=
desired_access
;
return
*
status
=
STATUS_SUCCESS
;
}
...
...
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