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
efed229a
Commit
efed229a
authored
Oct 25, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add a test for access checks with the INHERIT_ONLY_ACE flag.
parent
23df453d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
security.c
dlls/advapi32/tests/security.c
+16
-0
No files found.
dlls/advapi32/tests/security.c
View file @
efed229a
...
...
@@ -894,6 +894,22 @@ static void test_AccessCheck(void)
trace
(
"Couldn't get SE_SECURITY_PRIVILEGE (0x%08x), skipping ACCESS_SYSTEM_SECURITY test
\n
"
,
ret
);
/* test INHERIT_ONLY_ACE */
ret
=
InitializeAcl
(
Acl
,
256
,
ACL_REVISION
);
ok
(
ret
,
"InitializeAcl failed with error %d
\n
"
,
GetLastError
());
ret
=
AddAccessAllowedAceEx
(
Acl
,
ACL_REVISION
,
INHERIT_ONLY_ACE
,
KEY_READ
,
EveryoneSid
);
ok
(
ret
,
"AddAccessAllowedAceEx failed with error %d
\n
"
,
GetLastError
());
ret
=
AccessCheck
(
SecurityDescriptor
,
Token
,
KEY_READ
,
&
Mapping
,
PrivSet
,
&
PrivSetLen
,
&
Access
,
&
AccessStatus
);
ok
(
ret
,
"AccessCheck failed with error %d
\n
"
,
GetLastError
());
err
=
GetLastError
();
todo_wine
ok
(
!
AccessStatus
&&
err
==
ERROR_ACCESS_DENIED
,
"AccessCheck should have failed "
"with ERROR_ACCESS_DENIED, instead of %d
\n
"
,
err
);
todo_wine
ok
(
!
Access
,
"Should have failed to grant any access, got 0x%08x
\n
"
,
Access
);
CloseHandle
(
Token
);
res
=
DuplicateToken
(
ProcessToken
,
SecurityAnonymous
,
&
Token
);
...
...
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