summaryrefslogtreecommitdiff
path: root/source3/libads/disp_sec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads/disp_sec.c')
-rw-r--r--source3/libads/disp_sec.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/source3/libads/disp_sec.c b/source3/libads/disp_sec.c
index a930fd6fe0..ab8ceecb0c 100644
--- a/source3/libads/disp_sec.c
+++ b/source3/libads/disp_sec.c
@@ -52,7 +52,7 @@ static struct perm_mask_str {
};
/* convert a security permissions into a string */
-static void ads_disp_perms(uint32 type)
+void ads_disp_perms(uint32 type)
{
int i = 0;
int j = 0;
@@ -82,8 +82,20 @@ static void ads_disp_perms(uint32 type)
puts("");
}
+/* Check if ACE has OBJECT type */
+BOOL ads_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;
+}
+
/* display ACE */
-static void ads_disp_ace(SEC_ACE *sec_ace)
+void ads_disp_ace(SEC_ACE *sec_ace)
{
char *access_type = "UNKNOWN";
@@ -111,7 +123,7 @@ static void ads_disp_ace(SEC_ACE *sec_ace)
} else if (sec_ace->type == SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT) {
access_type = "ALLOWED OBJECT";
} else if (sec_ace->type == SEC_ACE_TYPE_ACCESS_DENIED_OBJECT) {
- access_type = "DENIED OBJECT";
+ access_type = "DEINED OBJECT";
} else if (sec_ace->type == SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT) {
access_type = "AUDIT OBJECT";
}
@@ -123,7 +135,7 @@ static void ads_disp_ace(SEC_ACE *sec_ace)
}
/* display ACL */
-static void ads_disp_acl(SEC_ACL *sec_acl, char *type)
+void ads_disp_acl(SEC_ACL *sec_acl, char *type)
{
if (!sec_acl)
printf("------- (%s) ACL not present\n", type);