summaryrefslogtreecommitdiff
path: root/source3/smbd/posix_acls.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-02-11 02:14:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:37 -0500
commitfbd9e4098333e7d121207ae6991e525768d411e0 (patch)
tree52b5f1a36c71560d7fd493190a523cf89e19aadb /source3/smbd/posix_acls.c
parent5ba4fb5eb9da77d313b88f1437cedc30679bdd95 (diff)
downloadsamba-fbd9e4098333e7d121207ae6991e525768d411e0.tar.gz
samba-fbd9e4098333e7d121207ae6991e525768d411e0.tar.bz2
samba-fbd9e4098333e7d121207ae6991e525768d411e0.zip
r5324: In order to process DELETE_ACCESS correctly and return access denied
to a WXPSP2 client we must do permission checking in userspace first (this is a race condition but what can you do...). Needed for bugid #2227. Jeremy. (This used to be commit da23577f162b6bdca7d631fca256a9b3b04043e4)
Diffstat (limited to 'source3/smbd/posix_acls.c')
-rw-r--r--source3/smbd/posix_acls.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 903b943522..b3976fdecb 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3753,3 +3753,14 @@ BOOL set_unix_posix_acl(connection_struct *conn, files_struct *fsp, const char *
SMB_VFS_SYS_ACL_FREE_ACL(conn, file_acl);
return True;
}
+
+/****************************************************************************
+ Actually emulate the in-kernel access checking for write access. We need
+ this to successfully return ACCESS_DENIED on a file open for delete access.
+****************************************************************************/
+
+BOOL can_delete_file_in_directory(connection_struct *conn, const char *fname)
+{
+ /* Add acl check here... JRA */
+ return True;
+}