summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-24 13:29:00 -0800
committerJeremy Allison <jra@samba.org>2008-01-24 13:29:00 -0800
commit6b594996a8dff0c6c663752f06a994c95020d869 (patch)
tree7bc6e9385e64d97b16d039f3f015139b004573f5
parentb83dfaf09679b0bbd7341230e1e96b53ae5289cb (diff)
downloadsamba-6b594996a8dff0c6c663752f06a994c95020d869.tar.gz
Add debug messages to trace this if needed.
Jeremy.
-rw-r--r--source/smbd/posix_acls.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c
index a62fe6c75df..a861f776c68 100644
--- a/source/smbd/posix_acls.c
+++ b/source/smbd/posix_acls.c
@@ -3194,11 +3194,21 @@ static NTSTATUS append_parent_acl(files_struct *fsp,
if (fsp->is_directory) {
if (!(se->flags & SEC_ACE_FLAG_CONTAINER_INHERIT)) {
/* Doesn't apply to a directory - ignore. */
+ DEBUG(10,("append_parent_acl: directory %s "
+ "ignoring non container "
+ "inherit flags %u\n",
+ fsp->fsp_name,
+ (unsigned int)se->flags ));
continue;
}
} else {
if (!(se->flags & SEC_ACE_FLAG_OBJECT_INHERIT)) {
/* Doesn't apply to a file - ignore. */
+ DEBUG(10,("append_parent_acl: file %s "
+ "ignoring non object "
+ "inherit flags %u\n",
+ fsp->fsp_name,
+ (unsigned int)se->flags ));
continue;
}
}
@@ -3216,6 +3226,10 @@ static NTSTATUS append_parent_acl(files_struct *fsp,
}
if (k < psd->dacl->num_aces) {
/* SID matched. Ignore. */
+ DEBUG(10,("append_parent_acl: path %s "
+ "ignoring protected sid %s\n",
+ fsp->fsp_name,
+ sid_string_static(&se->trustee)));
continue;
}
}