1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

libcli:sec:display: print callback ace types

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-12-14 10:56:42 +13:00 committed by Andrew Bartlett
parent 416f6ef726
commit 601d60e391

View File

@ -162,7 +162,17 @@ void display_sec_ace(struct security_ace *ace)
break;
case SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT:
printf("SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT");
break;
break;
#define ACE_CASE(x) case x: printf(#x); break
ACE_CASE(SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK);
ACE_CASE(SEC_ACE_TYPE_ACCESS_DENIED_CALLBACK);
ACE_CASE(SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK_OBJECT);
ACE_CASE(SEC_ACE_TYPE_ACCESS_DENIED_CALLBACK_OBJECT);
ACE_CASE(SEC_ACE_TYPE_SYSTEM_AUDIT_CALLBACK);
ACE_CASE(SEC_ACE_TYPE_SYSTEM_ALARM_CALLBACK);
ACE_CASE(SEC_ACE_TYPE_SYSTEM_AUDIT_CALLBACK_OBJECT);
ACE_CASE(SEC_ACE_TYPE_SYSTEM_ALARM_CALLBACK_OBJECT);
#undef ACE_CASE
default:
printf("????");
break;