summaryrefslogtreecommitdiffstats
path: root/source3/smbd/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* s3:files: factor fsp_free() out of file_free()Michael Adam2012-06-151-0/+1
| | | | | | To be reused in the durable reconnect code. Pair-Programmed-With: Volker Lendecke <vl@samba.org>
* s3:smbd: refactor fsp_new() out of file_new()Michael Adam2012-06-151-0/+2
| | | | | Pair-Programmed-With: Volker Lendecke <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: add a fsp_persistent_id() functionStefan Metzmacher2012-06-141-0/+1
| | | | | | | | | | | | | | | | This calculates a 64-bit value that most likely uniquely identifies the files_struct globally to the server. * 32-bit random gen_id * 16-bit truncated open_time * 16-bit fnum (valatile_id) Based on code from Ira Cooper. Use fsp->fh->gen_id as the persistent fileid in SMB2. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: add file_fsp_smb2()Stefan Metzmacher2012-06-091-0/+3
| | | | metze
* s3:smbd: change set_file_oplock() to return NTSTATUSMichael Adam2012-06-081-1/+1
| | | | | | | | Pair-Programmed-With: Volker Lendecke <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jun 8 23:20:20 CEST 2012 on sn-devel-104
* s3:include: change connection_struct->cnum to uint32_tMichael Adam2012-06-061-1/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: change user_struct->vuid to uint64_tStefan Metzmacher2012-06-061-9/+9
| | | | | | | | | | Only sconn->smb1.sessions.next_vuid remains as uint16_t, so that we do not generate larger values yet. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jun 6 12:07:33 CEST 2012 on sn-devel-104
* s3:smbd: let file_close_pid/file_close_user take a uint64_t vuidStefan Metzmacher2012-06-061-2/+2
| | | | metze
* s3:smbd: pass down vuid as uint64_t in lanman.cStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:smbd: change vuid to uint64_t in uid.cStefan Metzmacher2012-06-061-3/+3
| | | | metze
* s3:smbd: let close_cnum() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:smbd: let make_connection() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:smbd: let conn_clear_vuid_caches() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'Stefan Metzmacher2012-06-061-5/+5
| | | | metze
* s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.hStefan Metzmacher2012-06-061-9/+0
| | | | | | These are called from vfs modules, which should not depend on smbd/proto.h metze
* s3:smbd: add change_notify_fsp_has_changes()Stefan Metzmacher2012-06-061-0/+1
| | | | metze
* s3:smbd: fcb_or_dos_open() can be staticStefan Metzmacher2012-06-061-10/+0
| | | | metze
* s3:smbd: add vfs_remove_all_fsp_extensions()Stefan Metzmacher2012-06-061-0/+1
| | | | metze
* s3:smbd: make conn_close_all() a void functionStefan Metzmacher2012-06-031-1/+1
| | | | metze
* s3:smbd: pass smbd_server_connection to should_notify_deferred_opens()Stefan Metzmacher2012-05-251-1/+1
| | | | metze
* s3:smbd: remove unused get_number_of_exclusive_open_oplocks()Stefan Metzmacher2012-05-251-1/+0
| | | | metze
* s3:smbd: remove global 'smbd_server_conn' !!!Stefan Metzmacher2012-05-241-1/+3
| | | | | | | | | | For now we still use a global 'global_smbXsrv_connection' in order to pass the connection state to exit_server*(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 24 20:07:20 CEST 2012 on sn-devel-104
* s3:smbd/files: split file_init_global() out of file_init()Stefan Metzmacher2012-05-241-0/+1
| | | | metze
* s3:smbd/msdfs: pass allow_broken_path to resolve_dfspath_wcard()Stefan Metzmacher2012-05-241-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 24 16:14:01 CEST 2012 on sn-devel-104
* s3:smbd/msdfs: pass 'allow_broken_path' to get_referred_path()Stefan Metzmacher2012-05-241-1/+1
| | | | | | | | Note the DCERPC code should not be smb2 specific! I wonder why this is at all smb2 specific... metze
* s3:smbd/msdfs: let create_conn_struct() also fake the 'smbd_server_connection'Stefan Metzmacher2012-05-241-6/+7
| | | | metze
* s3:smbd/proto.h: remove unused resolve_dfspath() prototypeStefan Metzmacher2012-05-231-5/+0
| | | | metze
* s3:smbd: add nt_status_np_pipe()Stefan Metzmacher2012-05-231-0/+1
| | | | | | This mapps between NT_STATUS_CONNECTION_* to NT_STATUS_PIPE_* metze
* s3:onefs: remove all onefs related code as it not maintained anymoreStefan Metzmacher2012-05-161-4/+0
| | | | | | | | | | See https://lists.samba.org/archive/samba-technical/2012-May/083631.html for the discussion. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 16 11:23:05 CEST 2012 on sn-devel-104
* s3: New notify implementationVolker Lendecke2012-04-171-8/+19
| | | | | | | | | | | | From notify_internal.c: /* * The notify database is split up into two databases: One * relatively static index db and the real notify db with the * volatile entries. */ This change is necessary to make notify scale better in a cluster
* Remove cancel_aio_by_fsp(). It can never work and could lead to memory ↵Jeremy Allison2012-04-121-1/+0
| | | | | | | corruption as outstanding IO's complete. Also we never have any aio's on a call to close_normal_file() with close_type ERROR_CLOSE.
* s3:smbd add seperate function to initialize kernel oplocksChristian Ambach2012-04-111-0/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Move the aio signal init to the vfs moduleVolker Lendecke2012-04-091-0/+1
| | | | | | On platforms that don't have an RT signal space, signal initialization fails. aio_fork and aio_pthread don't need the signal, so this would block them from running as well.
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-15/+15
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* First part of fix for bug 8837 - smbd crashes when deleting directory and ↵Jeremy Allison2012-04-041-1/+1
| | | | | | veto files are enabled. Add some const to the sec_ctx code.
* s3: Pass filters explicitly through vfs notify watchVolker Lendecke2012-03-261-1/+2
| | | | | | | | | This removes a dependency on "struct notify_entry" and makes the nature of the API more explicit. We depend upon the VFS module to mask out elements from e->filter and e->subdir_filter that it took over to handle. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
* s3: Remove the sys_notify dependency from notify_internalVolker Lendecke2012-03-231-8/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 23 12:12:51 CET 2012 on sn-devel-104
* s3:vfs_gpfs: Export disk_norm functionChristof Schmitt2012-03-221-0/+1
| | | | | | vfs modules implementing the disk_free callback need access to the function disk_norm for normalizing the data if the parameter small query is true.
* s3: Remove "conn" param from notify_init()Volker Lendecke2012-03-211-2/+1
|
* s3: Remove "conn" param from sys_notify_context_createVolker Lendecke2012-03-211-2/+1
|
* s3: Pass "conn" to sys_notify_watch()Volker Lendecke2012-03-211-0/+1
|
* s3: Pass "conn" to notify_add()Volker Lendecke2012-03-211-1/+2
|
* s3: Pass "path" through vfs_notify_watchVolker Lendecke2012-03-211-0/+2
|
* s3: Remove the separate server_id arg to notify_initVolker Lendecke2012-03-151-1/+1
| | | | | | The server_id is tied to the messaging_context Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add smb_request_doneVolker Lendecke2012-03-101-0/+1
| | | | | | | | | | | This is used to enable async chained command sequences. A synchronous reply_xxx command does not need to take are anymore about and_x chaining. The async commands (pipe r/w at this moment) must do so however. When finished, they must inform the main chain engine that they are finished with a smb_request_done call. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104
* s3: Remove "req_wct_ofs()"Volker Lendecke2012-03-101-1/+0
| | | | This is fixed up in construct_reply_chain
* s3: Remove chain_replyVolker Lendecke2012-03-101-1/+0
| | | | <insert your favourite tombstone ascii art here>
* s3: Add a new set of andx chain handling routinesVolker Lendecke2012-03-101-0/+12
| | | | This is in preparation of getting rid of chain_reply.
* s3-smbd make change_to_user_by_session staticAndrew Bartlett2012-03-071-2/+0
|
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-041-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______