summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-29 17:04:08 -0800
committerJeremy Allison <jra@samba.org>2012-02-29 17:04:08 -0800
commit89c55485c3cc6eefdd7af20f79b1d219cace5066 (patch)
tree66b0de8b952da922cf5c4c6659a2bad5b3f43bff /source3/include
parent442e79efbdc9dfaf5774c67edb3460603d63d2a5 (diff)
downloadsamba-89c55485c3cc6eefdd7af20f79b1d219cace5066.tar.gz
samba-89c55485c3cc6eefdd7af20f79b1d219cace5066.tar.bz2
samba-89c55485c3cc6eefdd7af20f79b1d219cace5066.zip
Add the implementation of check_reduced_name_with_privilege(). Now to plumb into
SMB1 requests.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 10e47984a8..a54d2069a8 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -442,6 +442,7 @@ struct current_user {
};
struct smbd_smb2_request;
+struct privilege_paths;
struct smb_request {
uint8_t cmd;
@@ -495,6 +496,12 @@ struct smb_request {
* Back pointer to smb2 request.
*/
struct smbd_smb2_request *smb2req;
+
+ /*
+ * Pathnames used if request done
+ * under privilege.
+ */
+ struct privilege_paths *priv_paths;
};
/* Defines for the sent_oplock_break field above. */
@@ -1349,6 +1356,15 @@ struct smb_filename {
SMB_STRUCT_STAT st;
};
+/*
+ * Pathnames used if request done
+ * under privilege.
+ */
+struct privilege_paths {
+ struct smb_filename parent_name;
+ struct smb_filename file_name;
+};
+
/* Used to keep track of deferred opens. */
struct deferred_open_record;