[v7 4/5] server: Named pipe objects must have a SD
Jonathan Doron
jond at wizery.com
Fri Sep 22 12:01:59 CDT 2017
Signed-off-by: Jonathan Doron <jond at wizery.com>
---
server/named_pipe.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/server/named_pipe.c b/server/named_pipe.c
index 09688dd..d4e2dfd 100644
--- a/server/named_pipe.c
+++ b/server/named_pipe.c
@@ -1300,6 +1300,7 @@ DECL_HANDLER(create_named_pipe)
struct object *root;
const struct security_descriptor *sd;
const struct object_attributes *objattr = get_req_object_attributes( &sd, &name, &root );
+ static const struct security_descriptor pipe_default_sd = {0};
if (!objattr) return;
@@ -1321,6 +1322,9 @@ DECL_HANDLER(create_named_pipe)
if (!(root = get_directory_obj( current->process, objattr->rootdir ))) return;
}
+ if (!sd)
+ sd = &pipe_default_sd;
+
pipe = create_named_object( root, &named_pipe_ops, &name, objattr->attributes | OBJ_OPENIF, sd );
if (root) release_object( root );
--
2.9.4
More information about the wine-patches
mailing list