summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-winbind: Fix bug #9052 resolving our own "Domain Local" groups.Andreas Schneider2012-07-231-8/+1
| | | | | | | | | | | | | | | | | We don't resolve our own "Domain Local" groups since bug #7843 has been fixed. So we need to add the add resource groups to the sid list too. Before bug #7843 the "Domain Local" groups were added with a lookupuseraliases call, but this isn't done anymore for our domain so we need to resolve resource groups here. When to use Resource Groups: http://technet.microsoft.com/en-us/library/cc753670%28v=WS.10%29.aspx Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 23 22:12:30 CEST 2012 on sn-devel-104
* Remove source3/lib/pidfile.cJeremy Allison2012-07-201-81/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 20 03:57:20 CEST 2012 on sn-devel-104
* Make the s3 pidfile use the common code inside lib/util/pidfile.cJeremy Allison2012-07-191-137/+27
|
* Move source4/smbd/pidfile into lib/util in preparation for making it in common.Jeremy Allison2012-07-191-4/+4
|
* s3: Add tevent_wait_send/recvVolker Lendecke2012-07-182-0/+120
| | | | | | | To me it seems that we might have this functionality already somewere... I just can't find it. Metze, do you have an idea? Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-libasys: Add asys_fsync() implementationVolker Lendecke2012-07-181-0/+43
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio: Remove unused VFS functions and moreVolker Lendecke2012-07-181-148/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make smbd/aio.c not depend on aio.h anymoreVolker Lendecke2012-07-181-0/+4
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* libasysVolker Lendecke2012-07-184-0/+521
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* source3/netapi: fix only caller which doesn't set up a talloc_stackframe()Rusty Russell2012-07-181-0/+4
| | | | | | | | libnetapi_free() needs a stackframe too; looked like Andrew and Günther missed this in a37de9a95974c138d264d9cb0c7829bb426bb2d6. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-184-7/+8
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/lib/smbconf/testsuite.c: fix stackframe leakRusty Russell2012-07-181-0/+1
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* Move set_thread_credentials_permanently() to set_thread_credentials()Jeremy Allison2012-07-111-12/+12
| | | | | | | | | | as we need to keep the saved set uid/gid otherwise there is an interaction with open[at]() and NO_ATIME returning EPERM. As this is meant for threaded code inside the process we don't need to do an irreverisble change anyway. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 11 03:54:00 CEST 2012 on sn-devel-104
* Fix typo we've had for a long time in set_re_uid() in the USE_SETRESUID case.Jeremy Allison2012-07-101-1/+1
| | | | | | | | | We only set the real euid, not the effective one. This is not a security issue as this is *only* used in the quota code, and only between code that brackets it with save_re_uid()/restore_re_uid(), Also this is not used on most platforms (we use USE_SETREUID by preference) but it's better to have this right. Bug to follow to get this fixed in 3.6.next and 3.5.next.
* Make check_same_stat() and check_same_dev_ino() common functions.Jeremy Allison2012-07-091-0/+29
|
* s3: Fix Coverity ID 709470 Uninitialized scalar variableVolker Lendecke2012-07-061-1/+1
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jul 6 18:46:06 CEST 2012 on sn-devel-104
* Move copy_unix_token() from locking/locking.c to lib/util.c.Jeremy Allison2012-07-031-0/+30
| | | | Make public.
* Add function set_thread_credentials_permanently(). Panic if fail.Jeremy Allison2012-07-031-0/+48
| | | | Not yet used.
* s3-passdb: Remove obsolte ldapsam_compat support.Andreas Schneider2012-07-031-6/+0
|
* s3-libpidfile: fix check for running process.Björn Baumbach2012-07-021-1/+1
| | | | | | | | | | Call pidfile_pid() with process name instead of pid file name. pidfile_pid does create the pid file name by itself. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Jul 2 19:19:21 CEST 2012 on sn-devel-104
* s3-libpidfile: some more debug outputBjörn Baumbach2012-07-021-0/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Try and fix the autoconf build on Solaris/Nexenta/etc.Jeremy Allison2012-06-301-3/+0
| | | | | | | | | Their AC_TRY_RUN doesn't include any current CPPFLAGS. Make the set[res]uid checks independent of this. Needs a small change to the waf build in order to code with the change. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 30 00:32:36 CEST 2012 on sn-devel-104
* s3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()Michael Adam2012-06-291-1/+3
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()Michael Adam2012-06-291-2/+3
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() functionMichael Adam2012-06-291-1/+4
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbwrap_ctdb: rename db_ctdb_own_record() -> db_ctdb_can_use_local_copy()Michael Adam2012-06-291-3/+3
| | | | | | | This matches the function's intention much closer, since it also tests whether we have a valid local read only copy. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:dbrwap_ctdb: remove commented out legacy codeMichael Adam2012-06-291-5/+1
|
* s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdbMichael Adam2012-06-291-4/+3
| | | | | | | | | | | | The introduction of read only copies has broken the algorithm for deteting whether we can use the local record copy for fetch_locked and fetch: For fetch locked the new code always uses the local copy if there is one... This patch re-establish the original algorithm for the build against a ctdb without read only record copies. Reported-by: Gregor Beck <gbeck@sernet.de>
* Move back to using per-thread credentials on Linux. Fixes the glibc native ↵Jeremy Allison2012-06-291-9/+9
| | | | | | | | | | | | | AIO lost wakeup problem. See this post: https://lists.samba.org/archive/samba-technical/2012-June/085101.html for details. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
* Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison2012-06-283-66/+73
| | | | | | Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
* s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.hVolker Lendecke2012-06-281-1/+0
| | | | | | | Signed-off-by: Bjoern Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 16:43:13 CEST 2012 on sn-devel-104
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-275-6/+6
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3:conn_tdb: add a function connections_fetch_entry_ext() that also takes ↵Gregor Beck2012-06-272-5/+19
| | | | | | | | the cnum and have connections_fetch_entry() call connections_fetch_entry_ext(). Signed-off-by: Michael Adam <obnox@samba.org>
* s3:lib:dbwrap: fix return value of db_ctdb_traverse[_read] for ↵Gregor Beck2012-06-271-6/+17
| | | | | | | | non-persistent dbs to return the number of traversed records upon successful traverse. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:serverid: don't ignore the result of dbwrap_parse_record()Stefan Metzmacher2012-06-221-1/+6
| | | | metze
* dbwrap: dbwrap_local_open()Rusty Russell2012-06-221-3/+3
| | | | | | | | This simply opens a tdb: it will eventually switch depending on the extension. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* dbwrap: remove get_flags().Rusty Russell2012-06-221-8/+0
| | | | | | | | | | | | The flags returned were TDB-specific: this was only used for detecting the endianness of obsolete databases (the conversion code was put in in 2003, with reference to Samba 2.3). It's easier to remove it than to translate the NTDB flags to TDB flags, and it's a really weird thing to ask for anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.cRusty Russell2012-06-221-81/+0
| | | | | | | We're about to use them for dbwrap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:idmap_cache: also store negative entries for unknown sidsStefan Metzmacher2012-06-211-0/+7
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 21 18:04:05 CEST 2012 on sn-devel-104
* s3: Use string_term_tdb_data where appropriateVolker Lendecke2012-06-211-2/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Fix const warningsVolker Lendecke2012-06-211-2/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:move serverid_equal() to serverid.cMichael Adam2012-06-212-21/+21
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-213-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: remove (now) unused cluster_id_equal()Michael Adam2012-06-211-6/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: reformat procid_equal() to adhere to coding guidelinesMichael Adam2012-06-211-7/+14
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: also compare the unique_id in procid_equal().Michael Adam2012-06-211-0/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: We can depend on pthreadpool nowVolker Lendecke2012-06-191-42/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add a dummy implementation for the pthreadpool APIVolker Lendecke2012-06-192-4/+183
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Revert "s3-lib Remove unused sys_fcntl_long()"Stefan Metzmacher2012-06-191-0/+14
| | | | | | | | This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69. This is still used in source3/smbd/oplock_irix.c metze
* lib/tdb_wrap: use tdb directly, not tdb_compat.Rusty Russell2012-06-191-1/+1
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>