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
1a1c1d07
Commit
1a1c1d07
authored
Oct 15, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Respect object type in SetSecurityInfo().
Do not try to treat types which are not kernel handles as kernel handles.
parent
b4926e27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
security.c
dlls/advapi32/security.c
+12
-4
No files found.
dlls/advapi32/security.c
View file @
1a1c1d07
...
...
@@ -2925,6 +2925,9 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType,
PACL
dacl
=
pDacl
;
NTSTATUS
status
;
if
(
!
handle
)
return
ERROR_INVALID_HANDLE
;
if
(
!
InitializeSecurityDescriptor
(
&
sd
,
SECURITY_DESCRIPTOR_REVISION
))
return
ERROR_INVALID_SECURITY_DESCR
;
...
...
@@ -3032,13 +3035,18 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType,
switch
(
ObjectType
)
{
case
SE_SERVICE
:
FIXME
(
"stub: Service objects are not supported at this time.
\n
"
);
status
=
STATUS_SUCCESS
;
/* Implement SetServiceObjectSecurity */
case
SE_FILE_OBJECT
:
case
SE_KERNEL_OBJECT
:
case
SE_WMIGUID_OBJECT
:
case
SE_REGISTRY_KEY
:
status
=
NtSetSecurityObject
(
handle
,
SecurityInfo
,
&
sd
);
break
;
default:
status
=
NtSetSecurityObject
(
handle
,
SecurityInfo
,
&
sd
);
FIXME
(
"unimplemented type %u, returning success
\n
"
,
ObjectType
);
status
=
STATUS_SUCCESS
;
break
;
}
if
(
dacl
!=
pDacl
)
free
(
dacl
);
...
...
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