mirror of
https://github.com/samba-team/samba.git
synced 2025-02-21 01:59:07 +03:00
Ensure Everyone/All access is mapped correctly to file generic perms to allow
anonymous IPC access. Jeremy.
This commit is contained in:
parent
036b1a8b09
commit
2f34e144c5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user