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
44593ba6
Commit
44593ba6
authored
Jan 30, 2013
by
Erich Hoover
Committed by
Alexandre Julliard
Jan 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Support service objects in SetNamedSecurityInfo.
parent
08238b83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
security.c
dlls/advapi32/security.c
+20
-10
No files found.
dlls/advapi32/security.c
View file @
44593ba6
...
...
@@ -4005,11 +4005,6 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
TRACE
(
"%s %d %d %p %p %p %p
\n
"
,
debugstr_w
(
pObjectName
),
ObjectType
,
SecurityInfo
,
psidOwner
,
psidGroup
,
pDacl
,
pSacl
);
if
(
ObjectType
!=
SE_FILE_OBJECT
)
{
FIXME
(
"Object type %d is not currently supported.
\n
"
,
ObjectType
);
return
ERROR_SUCCESS
;
}
if
(
!
pObjectName
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -4020,11 +4015,26 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
if
(
SecurityInfo
&
SACL_SECURITY_INFORMATION
)
access
|=
ACCESS_SYSTEM_SECURITY
;
err
=
get_security_file
(
pObjectName
,
access
,
&
handle
);
if
(
err
!=
ERROR_SUCCESS
)
return
err
;
err
=
SetSecurityInfo
(
handle
,
ObjectType
,
SecurityInfo
,
psidOwner
,
psidGroup
,
pDacl
,
pSacl
);
CloseHandle
(
handle
);
switch
(
ObjectType
)
{
case
SE_SERVICE
:
if
(
!
(
err
=
get_security_service
(
pObjectName
,
access
,
&
handle
)))
{
err
=
SetSecurityInfo
(
handle
,
ObjectType
,
SecurityInfo
,
psidOwner
,
psidGroup
,
pDacl
,
pSacl
);
CloseServiceHandle
(
handle
);
}
break
;
case
SE_FILE_OBJECT
:
if
(
!
(
err
=
get_security_file
(
pObjectName
,
access
,
&
handle
)))
{
err
=
SetSecurityInfo
(
handle
,
ObjectType
,
SecurityInfo
,
psidOwner
,
psidGroup
,
pDacl
,
pSacl
);
CloseHandle
(
handle
);
}
break
;
default:
FIXME
(
"Object type %d is not currently supported.
\n
"
,
ObjectType
);
return
ERROR_SUCCESS
;
}
return
err
;
}
...
...
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