Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Volker Lendecke
75c6e0e5c7
s3: Lift smbd_server_conn from file_find_di_first
2010-09-28 07:36:17 +02:00
Volker Lendecke
9fc9ff9bfa
s3: Remove smbd_server_conn from file_close_user
2010-09-28 07:36:16 +02:00
Volker Lendecke
25ca1cd1a8
s3: Remove smbd_server_conn from file_close_pid
2010-09-28 07:36:16 +02:00
Jeremy Allison
a738f5b846
Small tweak to bugfix for 7698 - Assert causes smbd to panic on invalid NetBIOS session request.
...
Don't just fail to reply on a bad NBT name, just don't do the
internal action.
Jeremy.
2010-09-27 18:24:53 -07:00
Jeremy Allison
03841f9e44
Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request.
...
Found by the CodeNomicon test suites at the SNIA plugfest.
http://www.codenomicon.com/
If an invalid NetBIOS session request is received the code in name_len() in
libsmb/nmblib.c can hit an assert.
Re-write name_len() and name_extract() to use "buf/len" pairs and
always limit reads.
Jeremy.
2010-09-26 03:01:03 -07:00
Jeremy Allison
7170b875c2
Thank goodness for code reviews. Volker caught - this should be lp_posix_pathnames()
...
not lp_unix_extensions().
Jeremy.
2010-09-22 18:34:19 -07:00
Jeremy Allison
314dc23ecf
Fix bug #7693 - smbd changing mode of files on rename
...
When using "map archive", don't change the archive bit on
renames or writes with UNIX extensions turned on.
Jeremy.
2010-09-22 12:26:13 -07:00
Simo Sorce
8ec7aaef48
s3-rpc_server: Moved ncacn_np declarations in common header file.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
5685914344
s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.
...
This way we have one common way to open internal pipes whether they
are shortcircuited or piped to an external process.
2010-09-15 12:53:42 +02:00
Volker Lendecke
755ef5cf11
s3: Remove smbd_server_fd() from set_local_machine_name()
2010-08-28 14:06:10 +02:00
Günther Deschner
b5bdcdd65e
s3-build: only include "fake_file.h" where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Volker Lendecke
1808dd0a85
s3: Make srv_send_smb take an sconn instead of a sock fd
2010-08-24 21:06:41 +02:00
Volker Lendecke
ac7b63384d
s3: Lift smbd_server_fd from reload_services()
2010-08-18 11:18:21 +02:00
Volker Lendecke
f8ecec21e2
s3: Remove smbd_server_fd() from read_smb_length()
2010-08-17 22:44:04 +02:00
Volker Lendecke
840b0f523b
s3: Move read_smb_length() to smbd/reply.c
2010-08-17 22:44:04 +02:00
Volker Lendecke
7d164498db
s3: Lift smbd_server_fd() from read_data()
...
All callers have appropriate debug messages themselves
2010-08-17 22:44:03 +02:00
Volker Lendecke
40ae8b74b6
s3: Remove smbd_server_fd() from write_data()
...
This completely removes the DEBUG(0, ..) error message from write_data(). I've
gone through all callers of write_data() and made sure that they have their own
equivalent error message printing.
2010-08-17 12:46:53 +02:00
Volker Lendecke
910e3df7dd
s3: Remove smbd_server_fd() from reply_echo
2010-08-16 22:39:23 +02:00
Volker Lendecke
495bb1efb3
s3: Remove smbd_server_fd() from reply_writebraw
2010-08-16 22:39:23 +02:00
Volker Lendecke
36cfc1d145
s3: Remove smbd_server_fd() from send_file_readX
2010-08-16 22:39:23 +02:00
Volker Lendecke
209b3aee1c
s3: Remove smbd_server_fd() from send_file_readbraw
2010-08-16 22:39:23 +02:00
Volker Lendecke
cc5f838319
s3: Remove smbd_server_fd() from reply_readbraw_error
2010-08-16 22:39:23 +02:00
Volker Lendecke
59645506a0
s3: Remove smbd_server_fd() from sendfile_short_send
2010-08-16 22:39:23 +02:00
Volker Lendecke
6f85247494
s3: Remove smbd_server_fd() from fake_sendfile
2010-08-16 22:39:23 +02:00
Volker Lendecke
3e28c05e98
s3: Remove smbd_server_fd from netbios_session_retarget
2010-08-16 22:39:22 +02:00
Volker Lendecke
0e12c216dc
s3: Remove smbd_server_fd from reply_special
2010-08-16 22:39:17 +02:00
Volker Lendecke
39da717fe1
s3: Lift the smbd_messaging_context from reload_services
2010-08-08 18:09:33 +02:00
Günther Deschner
813fbbd68c
s3-build: avoid to globally include printing and spoolss headers.
...
This shrinks precompiled headers by 3MB and will slightly speed up any build.
Guenther
2010-07-31 00:50:31 +02:00
Simo Sorce
c18913a2c2
s3-smbd: Convert reply_printqueue to use spoolss.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
21cd59e7a5
s3-smbd: Use the right check to test if we can print.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
bdab6b10d2
s3-printing: Moved printing.c headers to include/printing.h.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
849cc65654
s3-smbd: Migrated to new spoolss functions for printing.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Volker Lendecke
b01a41d05b
s3: Remove smbd_messaging_context() from smbd_do_locking()
2010-07-05 11:06:27 +02:00
Volker Lendecke
914b1c034f
s3: Remove smbd_messaging_context() from rename_open_files()
2010-07-05 11:06:27 +02:00
Volker Lendecke
8da0575507
s3: Remove smbd_messaging_context() from reply_unlock()
2010-07-05 11:06:27 +02:00
Volker Lendecke
9a3f53075e
s3: Remove smbd_messaging_context() from reply_lock()
2010-07-05 11:06:27 +02:00
Volker Lendecke
80cc726b4a
s3: Remove smbd_messaging_context() from reply_writeunlock()
2010-07-05 11:06:26 +02:00
Volker Lendecke
298da9a0a4
s3: Remove smbd_messaging_context() from reply_lockread()
2010-07-05 11:06:26 +02:00
Volker Lendecke
c7f44801e3
s3: Remove fsp_belongs_conn
...
check_open_fsp does exactly the same
2010-06-13 15:20:58 +02:00
Volker Lendecke
b90eb7dd69
s3: Remove some leftovers from macros
...
check_fsp and check_fsp_open used to be macros
2010-06-13 15:04:25 +02:00
Volker Lendecke
dd192bb649
s3: Explicitly pass sconn to is_valid_writeX_buffer
2010-06-12 15:42:52 +02:00
Volker Lendecke
73955a2d92
s3: Explicitly pass sconn to reply_readbraw_error
2010-06-12 15:42:52 +02:00
Volker Lendecke
d5f20aea73
s3: Pass sconn explicitly to reply_special
2010-06-12 15:42:52 +02:00
Volker Lendecke
7223799b6e
s3: Remove smbd_server_conn from smbd_do_locking
2010-06-12 15:42:52 +02:00
Volker Lendecke
5005ad2e78
s3: Remove smbd_server_conn from reply_rmdir
2010-06-12 15:42:52 +02:00
Volker Lendecke
0d6f3d64fa
s3: Remove smbd_server_conn from reply_writebraw
2010-06-12 15:42:52 +02:00
Volker Lendecke
8f8aac9c2f
s3: Remove smbd_server_conn from reply_read_and_X
2010-06-12 15:42:52 +02:00
Volker Lendecke
e16476ac48
s3: Remove smbd_server_conn from send_file_readX
2010-06-12 15:42:52 +02:00
Volker Lendecke
993738d368
s3: Remove smbd_server_conn from reply_read
2010-06-12 15:42:52 +02:00