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
11674b2f
Commit
11674b2f
authored
Jun 25, 2014
by
Joris van der Wel
Committed by
Alexandre Julliard
Jul 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Any of the 4 SE_*_DEFAULTED controls should not be stored on objects,…
server: Any of the 4 SE_*_DEFAULTED controls should not be stored on objects, their usage is transient.
parent
6ea4da40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
security.c
dlls/advapi32/tests/security.c
+2
-2
object.c
server/object.c
+0
-4
No files found.
dlls/advapi32/tests/security.c
View file @
11674b2f
...
...
@@ -5341,7 +5341,7 @@ static void test_default_dacl_owner_sid(void)
ret
=
GetSecurityDescriptorOwner
(
sd
,
&
owner
,
&
defaulted
);
ok
(
ret
,
"error %u
\n
"
,
GetLastError
()
);
ok
(
owner
!=
(
void
*
)
0xdeadbeef
,
"owner not set
\n
"
);
todo_wine
ok
(
!
defaulted
,
"owner defaulted
\n
"
);
ok
(
!
defaulted
,
"owner defaulted
\n
"
);
dacl
=
(
void
*
)
0xdeadbeef
;
present
=
FALSE
;
...
...
@@ -5350,7 +5350,7 @@ static void test_default_dacl_owner_sid(void)
ok
(
ret
,
"error %u
\n
"
,
GetLastError
()
);
ok
(
present
,
"dacl not present
\n
"
);
ok
(
dacl
!=
(
void
*
)
0xdeadbeef
,
"dacl not set
\n
"
);
todo_wine
ok
(
!
defaulted
,
"dacl defaulted
\n
"
);
ok
(
!
defaulted
,
"dacl defaulted
\n
"
);
index
=
0
;
found
=
FALSE
;
...
...
server/object.c
View file @
11674b2f
...
...
@@ -443,7 +443,6 @@ int default_set_sd( struct object *obj, const struct security_descriptor *sd,
{
owner
=
token_get_user
(
current
->
process
->
token
);
new_sd
.
owner_len
=
security_sid_len
(
owner
);
new_sd
.
control
|=
SE_OWNER_DEFAULTED
;
}
group
=
sd_get_group
(
sd
);
...
...
@@ -453,7 +452,6 @@ int default_set_sd( struct object *obj, const struct security_descriptor *sd,
{
group
=
token_get_primary_group
(
current
->
process
->
token
);
new_sd
.
group_len
=
security_sid_len
(
group
);
new_sd
.
control
|=
SE_GROUP_DEFAULTED
;
}
new_sd
.
control
|=
SE_SACL_PRESENT
;
...
...
@@ -469,7 +467,6 @@ int default_set_sd( struct object *obj, const struct security_descriptor *sd,
else
{
new_sd
.
sacl_len
=
0
;
new_sd
.
control
|=
SE_SACL_DEFAULTED
;
}
}
...
...
@@ -487,7 +484,6 @@ int default_set_sd( struct object *obj, const struct security_descriptor *sd,
{
dacl
=
token_get_default_dacl
(
current
->
process
->
token
);
new_sd
.
dacl_len
=
dacl
->
AclSize
;
new_sd
.
control
|=
SE_DACL_DEFAULTED
;
}
}
...
...
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