summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-09 07:03:28 +0000
committerJeremy Allison <jra@samba.org>2001-04-09 07:03:28 +0000
commit33706e48f072fa17363155de19650764c5aa4a84 (patch)
tree36a4ac1726820f5d5483f14f734fa03322a478c2
parent9d6dd97624f50dec3edd3bb9a3c0f7f47f9ae071 (diff)
downloadsamba-33706e48f072fa17363155de19650764c5aa4a84.tar.gz
samba-33706e48f072fa17363155de19650764c5aa4a84.tar.bz2
samba-33706e48f072fa17363155de19650764c5aa4a84.zip
Ensure Everyone/All access is mapped correctly to file generic perms to allow
anonymous IPC access. Jeremy. (This used to be commit 2f34e144c53d6be911de96298c55c34d08c4733f)
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 4395a20e46..e78968a6bb 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -134,12 +134,16 @@ BOOL share_info_db_init(void)
static SEC_DESC *get_share_security_default( TALLOC_CTX *ctx, int snum, size_t *psize)
{
extern DOM_SID global_sid_World;
+ extern struct generic_mapping file_generic_mapping;
SEC_ACCESS sa;
SEC_ACE ace;
SEC_ACL *psa = NULL;
SEC_DESC *psd = NULL;
+ uint32 def_access = GENERIC_ALL_ACCESS;
- init_sec_access(&sa, GENERIC_ALL_ACCESS );
+ se_map_generic(&def_access, &file_generic_mapping);
+
+ init_sec_access(&sa, GENERIC_ALL_ACCESS | def_access );
init_sec_ace(&ace, &global_sid_World, SEC_ACE_TYPE_ACCESS_ALLOWED, sa, 0);
if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, 1, &ace)) != NULL) {