summaryrefslogtreecommitdiffstats
path: root/lib/util/util.c
Commit message (Collapse)AuthorAgeFilesLines
* make the UID_WRAPPER skip checks at runtimeAndrew Tridgell2009-08-051-4/+7
| | | | | | | This fixes two issues pointed out by Andrew. It adds a runtime uwrap_enabled() call that wraps the skips needed for uid emulation. It also makes the skip in the directory_create_or_exist() function only change the uid checking code, not the permissions code
* added a uid_wrapper libraryAndrew Tridgell2009-08-051-0/+2
| | | | | | | | | | | | | | | | | | | | This library intercepts seteuid and related calls, and simulates them in a manner similar to the nss_wrapper and socket_wrapper libraries. This allows us to enable the vfs_unixuid NTVFS module in the build farm, which means we are more likely to catch errors in the token manipulation. The simulation is not complete, but it is enough for Samba4 for now. The major areas of incompleteness are: - no emulation of setreuid, setresuid or saved uids. These would be needed for use in Samba3 - no emulation of ruid changing. That would also be needed for Samba3 - no attempt to emulate file ownership changing, so code that (for example) tests whether st.st_uid matches geteuid() needs special handling
* No explicit initialization necessary for a zero blobVolker Lendecke2009-07-251-3/+1
|
* lib-util: move set_blocking() call into own file.Günther Deschner2009-06-101-31/+0
| | | | Guenther
* lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher2009-03-031-15/+0
| | | | metze
* Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.Jelmer Vernooij2009-03-011-0/+100
|
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-15/+11
|
* Fix Coverity ID 707 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+1
|
* lib/util: hex_encode_talloc(): fix error path and set talloc nameStefan Metzmacher2008-11-161-0/+4
| | | | metze
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-1/+0
| | | | remove some unused functions.
* Move more functions out of util_str.c into the shared util.c.Jelmer Vernooij2008-10-191-0/+278
|
* Use shared util.c.Jelmer Vernooij2008-10-181-107/+58
|
* Add extra argument free_on_fail to realloc_array() in Samba 4, as used by ↵Jelmer Vernooij2008-10-181-2/+4
| | | | Samba 3.
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+608
Conflicts: source4/Makefile