[2/4] server: Add access mapping for a named pipe device object, adjust its default access rights. Resend.

Dmitry Timoshkov dmitry at baikal.ru
Tue Apr 17 03:02:28 CDT 2012


---
 server/named_pipe.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/named_pipe.c b/server/named_pipe.c
index 590adca..f5ca864 100644
--- a/server/named_pipe.c
+++ b/server/named_pipe.c
@@ -238,7 +238,7 @@ static const struct object_ops named_pipe_device_ops =
     no_satisfied,                     /* satisfied */
     no_signal,                        /* signal */
     named_pipe_device_get_fd,         /* get_fd */
-    no_map_access,                    /* map_access */
+    named_pipe_map_access,            /* map_access */
     default_get_sd,                   /* get_sd */
     default_set_sd,                   /* set_sd */
     named_pipe_device_lookup_name,    /* lookup_name */
@@ -270,10 +270,10 @@ static void named_pipe_dump( struct object *obj, int verbose )
 
 static unsigned int named_pipe_map_access( struct object *obj, unsigned int access )
 {
-    if (access & GENERIC_READ)    access |= STANDARD_RIGHTS_READ;
+    if (access & GENERIC_READ)    access |= STANDARD_RIGHTS_READ | FILE_READ_ATTRIBUTES;
     if (access & GENERIC_WRITE)   access |= STANDARD_RIGHTS_WRITE | FILE_CREATE_PIPE_INSTANCE;
     if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE;
-    if (access & GENERIC_ALL)     access |= STANDARD_RIGHTS_ALL;
+    if (access & GENERIC_ALL)     access |= STANDARD_RIGHTS_ALL | FILE_READ_ATTRIBUTES | FILE_CREATE_PIPE_INSTANCE;
     return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
 }
 
-- 
1.7.9.4




More information about the wine-patches mailing list