diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/util_sid.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/lib/util_sid.c b/source4/lib/util_sid.c index 9910a9d261..6436035f8e 100644 --- a/source4/lib/util_sid.c +++ b/source4/lib/util_sid.c @@ -629,3 +629,18 @@ void print_guid(GUID *guid) d_printf("%02x", guid->info[i]); d_printf("\n"); } + + +/******************************************************************* + Check if ACE has OBJECT type. +********************************************************************/ +BOOL sec_ace_object(uint8 type) +{ + if (type == SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT || + type == SEC_ACE_TYPE_ACCESS_DENIED_OBJECT || + type == SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT || + type == SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT) { + return True; + } + return False; +} |