1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lbcli/security: callback object ACES fall back with no GUID

As with other object ACEs, if there is not a GUID to refer to the ACE
becomes the corresponding non-object ACE.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2023-09-20 11:12:42 +12:00 committed by Andrew Bartlett
parent 2923898e88
commit b08093ed9d

View File

@ -345,9 +345,21 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
case SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT:
tmp_ace->type = SEC_ACE_TYPE_SYSTEM_AUDIT;
break;
default:
/* all the _CALLBACK types */
break;
case SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK_OBJECT:
tmp_ace->type = SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK;
break;
case SEC_ACE_TYPE_ACCESS_DENIED_CALLBACK_OBJECT:
tmp_ace->type = SEC_ACE_TYPE_ACCESS_DENIED_CALLBACK;
break;
case SEC_ACE_TYPE_SYSTEM_AUDIT_CALLBACK_OBJECT:
tmp_ace->type = SEC_ACE_TYPE_SYSTEM_AUDIT_CALLBACK;
break;
default:
/*
* SEC_ACE_TYPE_SYSTEM_ALARM_CALLBACK_OBJECT
* is reserved.
*/
break;
}
}