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
12e44bf2
Commit
12e44bf2
authored
Oct 16, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix token_access_check to allow full access to security descriptors with…
server: Fix token_access_check to allow full access to security descriptors with present but NULL DACLs.
parent
a006b060
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
security.c
dlls/advapi32/tests/security.c
+0
-1
token.c
server/token.c
+1
-7
No files found.
dlls/advapi32/tests/security.c
View file @
12e44bf2
...
@@ -798,7 +798,6 @@ static void test_AccessCheck(void)
...
@@ -798,7 +798,6 @@ static void test_AccessCheck(void)
ret
=
AccessCheck
(
SecurityDescriptor
,
Token
,
KEY_READ
,
&
Mapping
,
ret
=
AccessCheck
(
SecurityDescriptor
,
Token
,
KEY_READ
,
&
Mapping
,
PrivSet
,
&
PrivSetLen
,
&
Access
,
&
AccessStatus
);
PrivSet
,
&
PrivSetLen
,
&
Access
,
&
AccessStatus
);
ok
(
ret
,
"AccessCheck failed with error %d
\n
"
,
GetLastError
());
ok
(
ret
,
"AccessCheck failed with error %d
\n
"
,
GetLastError
());
todo_wine
ok
(
AccessStatus
&&
(
Access
==
KEY_READ
),
ok
(
AccessStatus
&&
(
Access
==
KEY_READ
),
"AccessCheck failed to grant access with error %d
\n
"
,
"AccessCheck failed to grant access with error %d
\n
"
,
GetLastError
());
GetLastError
());
...
...
server/token.c
View file @
12e44bf2
...
@@ -811,18 +811,12 @@ static unsigned int token_access_check( struct token *token,
...
@@ -811,18 +811,12 @@ static unsigned int token_access_check( struct token *token,
}
}
/* 1: Grant desired access if the object is unprotected */
/* 1: Grant desired access if the object is unprotected */
if
(
!
dacl_present
)
if
(
!
dacl_present
||
!
dacl
)
{
{
*
priv_count
=
0
;
*
priv_count
=
0
;
*
granted_access
=
desired_access
;
*
granted_access
=
desired_access
;
return
*
status
=
STATUS_SUCCESS
;
return
*
status
=
STATUS_SUCCESS
;
}
}
if
(
!
dacl
)
{
*
priv_count
=
0
;
*
status
=
STATUS_ACCESS_DENIED
;
return
STATUS_SUCCESS
;
}
/* 2: Check if caller wants access to system security part. Note: access
/* 2: Check if caller wants access to system security part. Note: access
* is only granted if specifically asked for */
* is only granted if specifically asked for */
...
...
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