[5/7] server: Add access mapping for a named pipe device object, adjust its default access rights. Resend.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Apr 18 02:30:15 CDT 2012
---
server/named_pipe.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/server/named_pipe.c b/server/named_pipe.c
index 590adca..6ab0046 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_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_READ) access |= STANDARD_RIGHTS_READ | FILE_GENERIC_READ;
+ if (access & GENERIC_WRITE) access |= STANDARD_RIGHTS_WRITE | FILE_GENERIC_WRITE;
+ if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | FILE_GENERIC_EXECUTE;
+ if (access & GENERIC_ALL) access |= STANDARD_RIGHTS_ALL | FILE_ALL_ACCESS;
return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
}
--
1.7.9.4
More information about the wine-patches
mailing list