summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-09-13 16:11:31 -0700
committerJeremy Allison <jra@samba.org>2012-09-14 22:54:29 +0200
commitaa0a7cf51a8b4ed2f188c2c38c4d5d47688de9ad (patch)
tree406b0b33ee5ba049988501e4451221943a2ac36d /source3/smbd/proto.h
parent1e34d584393c09a43bf0226bebc0ae0f675e57ae (diff)
downloadsamba-aa0a7cf51a8b4ed2f188c2c38c4d5d47688de9ad.tar.gz
samba-aa0a7cf51a8b4ed2f188c2c38c4d5d47688de9ad.tar.bz2
samba-aa0a7cf51a8b4ed2f188c2c38c4d5d47688de9ad.zip
Add bool use_privs parameter to smbd_check_access_rights()
If this is set we should use it in preference to blindly assuming root can do anything. Currently set to 'false' in (most) callers.
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 5d6a299973..a1cef16139 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -598,6 +598,7 @@ void reply_nttranss(struct smb_request *req);
NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
const struct smb_filename *smb_fname,
+ bool use_privs,
uint32_t access_mask);
NTSTATUS fd_open(struct connection_struct *conn, files_struct *fsp,
int flags, mode_t mode);