summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-17 00:53:37 +0000
committerJeremy Allison <jra@samba.org>2003-07-17 00:53:37 +0000
commit9ad4fbcf75df4ed89893ffb0379d95685560e466 (patch)
tree31efca611f769e20908490b34ab75d49586d4486 /source3/smbd
parentf1b6cd794dd5de853c4b068361a326160a3d0384 (diff)
downloadsamba-9ad4fbcf75df4ed89893ffb0379d95685560e466.tar.gz
samba-9ad4fbcf75df4ed89893ffb0379d95685560e466.tar.bz2
samba-9ad4fbcf75df4ed89893ffb0379d95685560e466.zip
Don't allow read/write raw when signing is active.
Jeremy. (This used to be commit 8d2a848052df03dad7bfeb5e7be96f8e9a509bbf)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e7f01ad02f..61323e8b56 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1472,6 +1472,10 @@ int reply_readbraw(connection_struct *conn, char *inbuf, char *outbuf, int dum_s
files_struct *fsp;
START_PROFILE(SMBreadbraw);
+ if (srv_signing_active()) {
+ exit_server("reply_readbraw: SMB signing is active - raw reads/writes are disallowed.");
+ }
+
/*
* Special check if an oplock break has been issued
* and the readraw request croses on the wire, we must
@@ -1870,6 +1874,10 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size,
int outsize = 0;
START_PROFILE(SMBwritebraw);
+ if (srv_signing_active()) {
+ exit_server("reply_readbraw: SMB signing is active - raw reads/writes are disallowed.");
+ }
+
CHECK_FSP(fsp,conn);
CHECK_WRITE(fsp);