summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-13 10:15:48 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-13 10:15:48 +0000
commit062670f00c4f536e28eae9a3414239581d618774 (patch)
treee9f436c6a00a300c237daa33e4d6667a2972d5cd /source4/lib
parentaeda2f8152fa3c13868c414d2f06538ccc1b3304 (diff)
downloadsamba-062670f00c4f536e28eae9a3414239581d618774.tar.gz
samba-062670f00c4f536e28eae9a3414239581d618774.tar.bz2
samba-062670f00c4f536e28eae9a3414239581d618774.zip
removed a bunch of the old rpc code in preparation for replacing it all with auto-generated code
(This used to be commit 874bf4689d2816474b33eb1ac21530186319ed62)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/util_sid.c15
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;
+}