diff options
author | Jeremy Allison <jra@samba.org> | 2003-07-17 00:53:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-07-17 00:53:37 +0000 |
commit | 9ad4fbcf75df4ed89893ffb0379d95685560e466 (patch) | |
tree | 31efca611f769e20908490b34ab75d49586d4486 /source3 | |
parent | f1b6cd794dd5de853c4b068361a326160a3d0384 (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/reply.c | 8 |
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); |