summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branchesGerald Carter2-4/+190
(This used to be commit f65214be68c1a59d9598bfb9f3b19e71cc3fa07b)
2007-10-10r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke1-1/+1
locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test. (This used to be commit bbb508414683eeddd2ee0d2d36fe620118180bbb)
2007-10-10r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke1-0/+2
replace all data_blob(NULL, 0) calls. (This used to be commit 3d3d61687ef00181f4f04e001d42181d93ac931e)
2007-10-10r22775: For the cluster code I've developed a wrapper around tdb to put ↵Volker Lendecke3-0/+701
different database backends in place dynamically. The main abstractions are db_context and db_record, it should be mainly self-describing, see include/dbwrap.h. You open the db just as you would open a tdb, this time with db_open(). If you want to fetch a record, just do the db->fetch() call, if you want to do operations on it, you need to get it with fetch_locked(). I added dbwrap_file.c (not heavily tested lately) as an example for what can be done with that abstraction, uses a file per key. So if anybody is willing to shape that up, we might have a chance on reiserfs again.... :-) This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and sessionid.tdb. It should work fine for the others as well, I just did not yet get around to convert them. If nobody loudly screams NO, then I will import the code that uses this soon. Volker (This used to be commit e9d7484ca246cfca4a1fd23be35edc2783136ebe)
2007-10-10r22772: - Still working on the fact that readahead() is not declared (on at ↵Derrell Lipman3-0/+11
least one OS) but is available for linking. Instead of running configure tests with -Werror-implicit-function-declaration in developer mode (which may lead to different library functions being used in developer mode than when not in developer mode), add tests for whether readahead is declared. If not, provide a replacement declaration in lib/replace. (This used to be commit 7d05fa8b32b5b33e95fd9d552d2a45013b4803ec)
2007-10-10r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2-2/+111
connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker (This used to be commit e43e94cda1ad8876b3cb5d1129080b57fa6ec214)
2007-10-10r22759: sync lib/talloc with samba4Stefan Metzmacher8-16/+103
metze (This used to be commit 86c510e3198e03ed6efa61b27530bbb008f6802b)
2007-10-10r22754: When processing a string, ensure we don't write one pastJeremy Allison1-6/+15
the terminating NULL if we've already processed the null in iconv. Jerry, once I get confirmation from Thomas Bork this needs to be in 3.0.25 final. Tests fine with valgrind here. Jeremy. (This used to be commit 14b167ef6e0f2100bd9cdd05c4457e57e952fa5e)
2007-10-10r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke5-39/+35
patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)
2007-10-10r22659: merge from SAMBA_4_0:Stefan Metzmacher2-1/+14
- add AC_GNU_SOURCE macro for systems which don't have it (sles8) - fix compiler warning on some systems metze (This used to be commit cb785d9bed23fdf930bbd059eeeba5bde04af829)
2007-10-10r22641: Install tdbdump and tdbbackup.Jelmer Vernooij2-3/+3
(This used to be commit 232c5c65578e3cddffe7e6ed996de7fc42b32f48)
2007-10-10r22611: Fix from Jens Nissen <jens.nissen@gmx.net>. Fix badJeremy Allison1-3/+0
memory leak I introduced into acl code, also remove redundent extra check for global_sid_System : global_sid_System == S-1-5-18 which is already included in the check for a domain of global_sid_NT_Authority == S-1-5 Jeremy. (This used to be commit 10649540ac11e679997f414d4a6b12d057bd7913)
2007-10-10r22590: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison1-2/+6
That should be it.... Jeremy. (This used to be commit 603233a98bbf65467c8b4f04719d771c70b3b4c9)
2007-10-10r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2-6/+14
Jeremy. (This used to be commit 8968808c3b5b0208cbad9ac92eaf948f2c546dd9)
2007-10-10r22564: Move the _strict -> _zeronull functions into lib/util.cJeremy Allison3-105/+99
and out of talloc at tridge's request. Jeremy. (This used to be commit da78488b86c464b6861d36398cca7524ad5906fe)
2007-10-10r22555: Ensure our paranoid malloc functions return NULL onJeremy Allison1-0/+12
size == 0 so we have a known behavior. Jeremy. (This used to be commit 27c0f2970842a6e07875c5591ded6352acf36a4e)
2007-10-10r22542: Move over to using the _strict varients of the tallocJeremy Allison2-3/+3
calls. No functional changes. Looks bigger than it is :-). Jeremy. (This used to be commit f6fa3080fee1b20df9f1968500840a88cf0ee592)
2007-10-10r22541: Added talloc_size_strict macro.Jeremy Allison1-0/+1
Jeremy. (This used to be commit fcbfa2c99175780524d2258885410c79bbb12d6e)
2007-10-10r22540: Added _strict varients of the macro calls - addedJeremy Allison1-0/+6
prototypes. Jeremy. (This used to be commit 06b47f3d72d0ca1c83842dff3425d8dacd283fff)
2007-10-10r22539: Added _strict varients of the talloc calls toJeremy Allison2-1/+96
return NULL on size == 0 varients. Jeremy. (This used to be commit 1283da1bf8ebe458cf84ee4a703909945cdfcd88)
2007-10-10r22481: Move check for non-mappable SIDs to after sid_to_uid,Jeremy Allison1-0/+3
sid_to_gid mapping, add LocalSystem to non-mappable list. Jeremy. (This used to be commit 805f01464f3feb30725dbce1f90d4296380dd796)
2007-10-10r22418: Support running under launchd. We abstract the method of obtainingJames Peach1-0/+242
sockets to listen on a little, because in the launchd case these are provided for us. We also add an idle timeout so that a daemon can exit after a period of inactivity. (This used to be commit fc8589a3371d396197fae508e563f814899c2beb)
2007-10-10r22394: Remove test directory once we are finished.James Peach1-0/+2
(This used to be commit e718606295f4d686767d1583fd5e774dd66b8b86)
2007-10-10r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison1-7/+9
to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy. (This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)
2007-10-10r22389: Start preparing for multiple encryption contexts in theJeremy Allison1-7/+13
server. Allow server to reflect back to calling client the encryption context that was sent. Jeremy. (This used to be commit b49e90335d1e589916b5ab4992e3c4a2d221ca7e)
2007-10-10r22366: sync lib/talloc/ with samba4Stefan Metzmacher4-8/+22
metze (This used to be commit 7fab12b34a818f029f4285a59d6e49768b7f8e79)
2007-10-10r22364: sync lib/tdb/ with samba4Stefan Metzmacher10-82/+3300
there's no code change here... metze (This used to be commit 562a9ce019af802b4a71c210b69bc8b93ebcd76f)
2007-10-10r22363: merge from samba4:Stefan Metzmacher1-1/+1
fix compiler warning metze (This used to be commit e9200b4475bcae4fd5eaaf94905c8a9beccd635a)
2007-10-10r22320: Be more careful and check for the euid instead of the uid.Lars Müller1-1/+1
Thx for the hint James! (This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12)
2007-10-10r22318: If we're running as non root we might not be able to dump the core fileLars Müller1-0/+7
to the corepath. Even the chdir() will fail if the LOGFILEBASE path is set 0700. If the currrent user doesn't have the permission to create the core file we end with: unable to change to <LOGFILEBASE> refusing to dump core The alternative would be to change the permissions of the directory. But taht would not ensure core dumps are working out of the box. (This used to be commit 0814a3acbe0fe40badf88690ab61d8ad106419d6)
2007-10-10r22317: add tdb_ prefix to non static functionStefan Metzmacher3-8/+8
metze (This used to be commit 56e31d60c672689e934fbed2794c7c54cf874b11)
2007-10-10r22316: merge from samba4:Stefan Metzmacher1-2/+2
this function should be static metze (This used to be commit f722fd32da56aabca2fffe243e89177bc23e2be7)
2007-10-10r22315: move tdbback.c content into tdbbackup.cStefan Metzmacher3-273/+169
and make the functions static. also use libreplace headers in tdbbackup.c metze (This used to be commit 1ca12b1c9e7e8267fa13a40ebeb2bdcd199237de)
2007-10-10r22314: use libreplace headersStefan Metzmacher1-12/+4
metze (This used to be commit d757cdc092b07972c110208717f13fdc0656f55f)
2007-10-10r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplaceStefan Metzmacher2-0/+35
metze (This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1)
2007-10-10r22280: merge from samba4:Stefan Metzmacher1-56/+254
add a lot more detailed strtoll() and strtoull() tests metze (This used to be commit 737b445007109e3005e4c5fb278b56f00b8c157d)
2007-10-10r22276: Fix name -> servicename in messages.cJeremy Allison1-1/+1
Jeremy. (This used to be commit cc4face3bc269afa7af19bde534cacc04f9510a9)
2007-10-10r22274: merge from samba4:Stefan Metzmacher2-1/+11
- provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze (This used to be commit 5ca18546444e3e65491c2104cf8eeb1022bb5591)
2007-10-10r22271: merge from samba4:Stefan Metzmacher2-0/+7
provide __location__ in replace.h and see how the build-farm likes this simpler version metze (This used to be commit 3f87165771ecbbcd70e870235e324d25b21a04d4)
2007-10-10r22268: merge from samba4:Stefan Metzmacher1-4/+6
protect #define __location__ with an #ifndef metze (This used to be commit 4c93c05542c5a238b1b7a5cd9b75f9f852c0ad4d)
2007-10-10r22264: merge from samba4:Stefan Metzmacher2-2/+2
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0 and #ifndef doesn't work. metze (This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
2007-10-10r22254: merge from samba4:Stefan Metzmacher1-7/+56
- make the strtoll tests more verbose - add initial strtoull tests metze (This used to be commit 9865d3165d629c56a24d9fa5ee993f4b04ba12de)
2007-10-10r22252: merge from samba4:Stefan Metzmacher2-1/+7
add prototype of setenv metze (This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
2007-10-10r22249: move tdb code to lib/tdb/ as in samba4Stefan Metzmacher31-0/+6905
metze (This used to be commit c7def92a9c2e17c90061ef17bc14e36250574e85)
2007-10-10r22247: merge from samba4:Stefan Metzmacher1-1/+0
only test strtoll once metze (This used to be commit 17088fd644ef68ac2e96ed1246339b65943d63d0)
2007-10-10r22244: merge from samba4:Stefan Metzmacher1-2/+0
remove useless printf's metze (This used to be commit cf7c57eae5671cd15f0cee0173c7b05a8a8ba055)
2007-10-10r22240: merge from samba4:Stefan Metzmacher1-2/+2
use strlcpy instead of strcpy to make the IBM checker happy metze (This used to be commit fe4be25c3056260049a8052e072500756bf14fce)
2007-10-10r22229: discard_const_p is in lib/replace nowStefan Metzmacher1-4/+0
metze (This used to be commit 8dea4ebe98ec5bdb7fd55b54e9b14a52db817f4f)
2007-10-10r22227: merge from samba4:Stefan Metzmacher2-1/+24
move discard_const macros to librelace metze (This used to be commit 8f4a39127f7b560a7a609e74423ccb88f53e545e)
2007-10-10r22224: merge from samba4:Stefan Metzmacher1-5/+25
make comparing of struct tm more verbose and portable metze (This used to be commit 29cbd75f22bcbb10d049910c3a72d911094ccb05)