summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Add accessor functions for current uid, gid, unix token, NT token and vuid.Jeremy Allison2010-03-152-0/+48
| | | | Jeremy.
* We don't need to treat the token differently in the conn->admin_user case, ↵Jeremy Allison2010-03-151-11/+0
| | | | | | it should already be pointing to a token with uid == 0. Jeremy.
* Rever e80ceb1d7355c8c46a2ed90d5721cf367640f4e8 "Remove more uses of "extern ↵Jeremy Allison2010-03-1510-129/+78
| | | | | | | | struct current_user current_user;"." As requested by Volker, split this into smaller commits. Jeremy.
* s3:smbd: make sure we always have a valid talloc stackframeStefan Metzmacher2010-03-151-0/+3
| | | | metze
* s3-spoolss: Fix _spoolss_EnumPrinterData.Günther Deschner2010-03-151-3/+5
| | | | Guenther
* s3: Remove some unused #definesVolker Lendecke2010-03-141-8/+0
|
* s3: Use a switch to implement map_nt_error_from_tdbVolker Lendecke2010-03-141-30/+47
| | | | | First, this immediately gave me the warning that TDB_ERR_NESTING was not covered and second, this saved 48 bytes in the .o :-)
* s3: Remove some unused codeVolker Lendecke2010-03-142-24/+0
|
* s3: Fix some nonempty blank linesVolker Lendecke2010-03-145-30/+27
|
* s3: Convert unexpected.tdb to use tdb_wrap_openVolker Lendecke2010-03-131-10/+12
|
* s3: Make tdb_wrap_open more robustVolker Lendecke2010-03-132-43/+87
| | | | | This hides the use of talloc_reference from the caller, making it impossible to wrongly call talloc_free() on the result.
* s3-spoolss: wrap _spoolss_EnumPrinterData() around _spoolss_EnumPrinterDataEx().Günther Deschner2010-03-131-64/+40
| | | | | | This removes some dependencies to registry code. Guenther
* Missed a couple more uses of conn->server_info->ptok that need to be ↵Jeremy Allison2010-03-123-30/+36
| | | | | | | | | get_current_nttok(conn) Centralize the root check into smb1_file_se_access_check() so this is used by modules/vfs_acl_common.c also. Jeremy.
* Remove more uses of "extern struct current_user current_user;".Jeremy Allison2010-03-1210-79/+130
| | | | | | | | | | | | | Use accessor functions to get to this value. Tidies up much of the user context code. Volker, please look at the changes in smbd/uid.c to familiarize yourself with these changes as I think they make the logic in there cleaner. Cause smbd/posix_acls.c code to look at current user context, not stored context on the conn struct - allows correct use of these function calls under a become_root()/unbecome_root() pair. Jeremy.
* s3: Add "net registry increment"Volker Lendecke2010-03-121-0/+105
| | | | A convenience function to increment a DWORD value under a (cluster-wide) lock
* s3: Add "g_lock_do" as a convenience wrapper functionVolker Lendecke2010-03-123-27/+90
|
* s3: Actually use mem_ctx in net_g_lock_init()Volker Lendecke2010-03-121-3/+3
|
* s3: Fix a commentVolker Lendecke2010-03-121-1/+1
|
* s3: Fix some "net registry" usage messagesVolker Lendecke2010-03-121-3/+3
|
* s3-netlogon: Fix bug #7237: _netr_SamLogon segfaults for clients sending ↵Günther Deschner2010-03-121-6/+12
| | | | | | | | NULL domain. Thanks to Marc Muehlfeld <muehlfeld@medizinische-genetik.de>. Guenther
* Improve symlink delete test. Make sure we don't delete the link target by ↵Jeremy Allison2010-03-111-7/+19
| | | | | | mistake. Jeremy.
* s3-winreg: make QueryValue pass RPC-WINREG test again.Günther Deschner2010-03-111-0/+4
| | | | Guenther
* s3-winreg: fix some function names in debug statements.Günther Deschner2010-03-111-3/+3
| | | | Guenther
* s3: Make init_smb_request return boolVolker Lendecke2010-03-111-5/+10
| | | | Centralize the exit_server_cleanly()
* s3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.Günther Deschner2010-03-111-11/+8
| | | | | | Found by RPC-WINREG smbtorture test. Guenther
* Try and fix bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-102-4/+4
| | | | | Remove an arbitrarty 4G B limit that *doesn't need to be there* ! Jeremy.
* Move prototype to header of common code for set_sockaddr_portAndrew Bartlett2010-03-111-1/+0
|
* vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"SATOH Fumiyasu2010-03-101-1/+1
|
* Added regression test for bug #7234 - Symlink delete fails but incorrectly ↵Jeremy Allison2010-03-102-5/+47
| | | | | | | | reports success. Ensure we can delete a symlink by path. Jeremy.
* Fix bug #7234 - Symlink delete fails but incorrectly reports success to client.Jeremy Allison2010-03-101-1/+1
| | | | | | Typo called LSTAT instead of STAT in the unlink by pathname path. Jeremy.
* s3/drs: DsCrackNames - Propagating IDL changes to source codeKamen Mazdrashki2010-03-102-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3/drs: DsGetNCChanges - Propagating IDL changes to source codeKamen Mazdrashki2010-03-102-9/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-winreg: add some debug statements to _winreg_QueryValue().Günther Deschner2010-03-101-2/+6
| | | | Guenther
* s3: Fix a long-standing problem with recycled PIDsVolker Lendecke2010-03-1020-38/+602
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a samba server process dies hard, it has no chance to clean up its entries in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb. For locking.tdb and brlock.tdb Samba is robust by checking every time we read an entry from the database if the corresponding process still exists. If it does not exist anymore, the entry is deleted. This is not 100% failsafe though: On systems with a limited PID space there is a non-zero chance that between the smbd's death and the fresh access, the PID is recycled by another long-running process. This renders all files that had been locked by the killed smbd potentially unusable until the new process also dies. This patch is supposed to fix the problem the following way: Every process ID in every database is augmented by a random 64-bit number that is stored in a serverid.tdb. Whenever we need to check if a process still exists we know its PID and the 64-bit number. We look up the PID in serverid.tdb and compare the 64-bit number. If it's the same, the process still is a valid smbd holding the lock. If it is different, a new smbd has taken over. I believe this is safe against an smbd that has died hard and the PID has been taken over by a non-samba process. This process would not have registered itself with a fresh 64-bit number in serverid.tdb, so the old one still exists in serverid.tdb. We protect against this case by the parent smbd taking care of deregistering PIDs from serverid.tdb and the fact that serverid.tdb is CLEAR_IF_FIRST. CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not work when all smbds are restarted. For this, "net serverid wipe" has to be run before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up sessionid.tdb and connections.tdb. While there, this also cleans up overloading connections.tdb with all the process entries just for messaging_send_all(). Volker
* s3: Make TLDAP_IS_ALPHA and TLDAP_IS_ADH static functionsVolker Lendecke2010-03-101-5/+12
|
* s3-passdb: Fix typo in debug message.Karolin Seeger2010-03-101-1/+1
| | | | Karolin
* Fix the shell script in the root case. When run as root, make test now ↵Jeremy Allison2010-03-091-4/+4
| | | | | | detects CAP_DAC_OVERRIDE being left on in error. Jeremy.
* Add tests which, when run as root, will ensure we can't writeJeremy Allison2010-03-093-11/+154
| | | | | | into a read-only directory, or read a owner-read-only file. Jeremy.
* Fix typoSimo Sorce2010-03-091-2/+2
|
* Allow "make test" to complete as root. Obviously only safe on tightlyJeremy Allison2010-03-091-0/+16
| | | | | controlled developer machines. Jeremy.
* s3: Fix a NULL pointer dereferenceVolker Lendecke2010-03-091-1/+10
| | | | | | | | Found by Laurent Gaffie <laurent.gaffie@gmail.com>. Thanks! Volker
* s3:tldap add own filter parsingSimo Sorce2010-03-092-114/+614
| | | | Also add torture test to check filter parsing.
* s3: Fix a typo. Thanks to Christian Ambach for pointing me at it :-)Volker Lendecke2010-03-0920-20/+20
|
* Revert "Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail ↵Karolin Seeger2010-03-083-71/+5
| | | | | | | | | to respond to a read or write." This reverts commit a6ae7a552f851a399991262377cc0e062e40ac20. This fixes bug #7222 (All users have full rigths on all shares) (CVE-2010-0728). (cherry picked from commit 1c9494c76cc9686c61e0966f38528d3318f3176f)
* s3:build: Fix automatic building of vfs_tsmsm if gpfs and dmapi are present.Michael Adam2010-03-091-1/+1
| | | | Michael
* s3: add missing Makefile.in changes for vfs_crossrenameBjörn Jacke2010-03-081-0/+5
|
* s3: add vfs_crossrenameBjörn Jacke2010-03-082-0/+202
| | | | | this module adds optional server-side support for limited rename operations beyond filesystem boundaries, which was the previously the default.
* s3: remove cross-device rename support from vfs_defaultBjörn Jacke2010-03-081-116/+0
| | | | | | | | | | | | | cross-device rename support has some major limitations: - on huge files clients will timeout or hang - ACLs and EA information is not retained Usually a client will have to handle this. A Windows Server with a reparse point will also just return NT_STATUS_NOT_SAME_DEVICE. We will now by default do the same. I will add a vfs module which will restore the old cross-device renames.
* samba: remove cifs-utils tools from build systemsJeff Layton2010-03-082-173/+5
| | | | | | | | | | | | | | | | | | | | | Now that cifs-utils are their own project, we need to go ahead and pull them out of the samba tree. This patch represents the first step toward that end. Remove the cifs-utilities from the source3 and source4 builds. Please pay particular attention to the source4 piece. I'm not at all familiar with the build system there, and would appreciate someone sanity checking my changes. It also adds a small README.cifs-utils file in the topdir. This is optional, but I think it's a good idea to carry this for a release or two. Once this patch looks ok, I'll plan to do another patch to actually remove the client dir and the relevant docs-xml files from the tree altogether. Signed-off-by: Jeff Layton <jlayton@redhat.com>
* s3: Fix the build of net_afs.c with --fake-kaserver=yes, bug 7216Volker Lendecke2010-03-061-1/+1
| | | | Thanks to Geza Gemes <geza@kzsdabas.hu> for filing this bug