summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-03-01Move secacl to top-level.Jelmer Vernooij1-118/+0
2009-03-01Move secace.c to top-level.Jelmer Vernooij2-293/+16
2009-03-01Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-nextJelmer Vernooij1-4/+4
2009-03-01Move next_token_talloc() to top-level.Jelmer Vernooij1-112/+0
2009-03-01Eliminate two duplicate SEC_ACE_TYPE constants already provided byJelmer Vernooij1-4/+4
security.idl.
2009-02-28Fix async reading winbindd_responseVolker Lendecke1-1/+1
2009-02-26Remove a temporary debug message -- sorryVolker Lendecke1-1/+0
2009-02-26Convert open_socket_out to tevent_reqVolker Lendecke1-41/+41
2009-02-26s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam1-0/+18
This is useful for wrapping higher level aggregate operations in transactions. The text backend implementations just return WERR_OK, the registry backend implementatoins use the regdb_transaction_start|commit|cancel routines just added. Michael
2009-02-26Add db_tdb_parseVolker Lendecke1-0/+12
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Add dbwrap->parse_recordVolker Lendecke1-0/+26
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-115/+41
For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26Speed up "net conf list"Volker Lendecke1-0/+3
With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-25s3: Report the correct path when dumping core on FreeBSDTim Prouty1-1/+83
Utilize the kern.corefile sysctl value on FreeBSD
2009-02-25s3: Refactor and cleanup the error paths in dump_core_setupTim Prouty1-42/+49
2009-02-25s3:events: map TEVENT_DEBUG_TRACE to debug level 10Stefan Metzmacher1-1/+1
metze
2009-02-24s3: Fix a bug that prevent core files from being createdTim Prouty1-1/+0
Removed an erroneous free() that was causing the corepath to be NULL during dump_core(). This prevented dump_core() from actually calling abort() to create a core file. The bug was introduced in December by: 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00
2009-02-24Use read_packet for wb_resp_readVolker Lendecke1-90/+29
2009-02-24Use read_packet for wb_req_readVolker Lendecke1-92/+36
2009-02-24Remove read_pktVolker Lendecke1-99/+0
2009-02-24Use async writev for wb_resp_writeVolker Lendecke1-53/+23
2009-02-24Use async writev in wb_req_writeVolker Lendecke1-52/+22
2009-02-24Convert async_connect to tevent_reqVolker Lendecke2-31/+60
2009-02-24s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.Günther Deschner1-0/+63
Guenther
2009-02-23Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman1-29/+0
This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid().
2009-02-23More warning fixes for Solaris.Jeremy Allison4-7/+7
Jeremy.
2009-02-20s3: Refactor of madvise() usage in c441f58dSteven Danneman1-0/+7
* move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman1-67/+0
2009-02-19s3: Add extid to the dev/inode pairTim Prouty1-6/+24
This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
2009-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty1-16/+1
Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
2009-02-19Fix an uninitialized variableVolker Lendecke1-0/+1
2009-02-18S3: Stop creating SMBD cores when failing to create a pipe.todd stecher1-1/+11
This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
2009-02-17Fix warning about missmatch of uint32_t and size_t.Jeremy Allison1-1/+1
Jeremy.
2009-02-17s3-netapi: fix Coverity #881 and #882.Günther Deschner1-7/+56
Guenther
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-30/+1
2009-02-12tidy up timestamp checksBjörn Jacke1-33/+33
AC_CHECK_MEMBERS should be a sufficient check, there's no need to do manual compile tests. We can also assume that we have ctime and atime members when we have the mtime member.
2009-02-11s3: Implement wbcGetSidAliasesDan Sledz1-0/+84
* Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
2009-02-11s3: Implement wbcGetpwsidDan Sledz1-0/+47
* Adds the plumbing required to lookup users by sid into winbind, wbinfo and smbd helper lib (winbind_util.c). * Removes some double declarations of winbind_util.c functions. * Bumps the winbind protocol version to 21 and the minor version of wbclient to 3.
2009-02-10S3: Fixes for coverity issues.todd stecher1-4/+10
2009-02-10Add read_pkt_send/recvVolker Lendecke1-0/+99
2009-02-09s3 oplocks: Make the level2 oplock contention API more granularTim Prouty1-0/+19
This replaces release_level2_oplocks_on_change with contend_level2_oplock_begin/end in order to contend level2 oplocks throughout an operation rather than just at the begining. This is necessary for some kernel oplock implementations, and also lays the groundwork for better correctness in Samba's standard level2 oplock handling. The next step for non-kernel oplocks is to add additional state to the share mode lock struct that prevents any new opens from granting oplocks while a contending operation is in progress. All operations that contend level 2 oplocks are now correctly spanned except for aio and synchronous writes. The two write paths both have non-trivial error paths that need extra care to get right. RAW-OPLOCK and the rest of 'make test' are still passing with this change.
2009-02-09s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty1-4/+7
Fallback on EAGAIN
2009-02-09async_sock: Use unix errnos instead of NTSTATUSKai Blin3-143/+194
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
2009-02-06netapi: add NetServer testsuite.Günther Deschner4-1/+69
Guenther
2009-02-06netapi: include more SERVER_INFO_X levels in example code.Günther Deschner1-0/+16
Guenther
2009-02-06netapi: implement more SERVER_INFO_X levels.Günther Deschner1-1/+271
Guenther
2009-02-06netapi: add SERVER_INFO_X to public header.Günther Deschner1-0/+612
Guenther
2009-02-04Have nmbd check all available interfaces for WINS before failingAravind Srinivasan1-2/+5
When nmbd is acting as WINS, it picks the first interface's IP as WINS server's IP. If the first interface's IP is zero, we will just quit (even though we might have other interfaces with valid IPs). This patch makes nmbd look at all interfaces and pick the first interface with a valid IP as the WINS server's IP.
2009-02-02Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison1-1/+4
delete file This fixes the generic rename/delete problem for 3.3.0 and above. Fixed slightly differently to discussions, user viewable modified ACLs are not a good idea :-). Jeremy.
2009-02-02s3-wbclient: Use new tevent data typesKai Blin2-15/+15