1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

22 Commits

Author SHA1 Message Date
Andrew Tridgell
8756e13009 util: added samba_runcmd()
This allows us to run a child command in an async fashion, with
control over logging of stdout and stderr (which appears in the Samba
log file). This is useful for ensuring we don't miss important
messages from rndc commands (for example).

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-17 19:43:32 +11:00
Andrew Bartlett
7a290130bd lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.
Andrew Bartlett
2009-11-02 16:36:52 +11:00
Jelmer Vernooij
2dd7c9bc34 libutil: Add separate utility code for dealing with settings as a
collection of key/value pairs.
2009-09-26 23:59:35 +02:00
Andrew Tridgell
58e5e1ea8d make the UID_WRAPPER skip checks at runtime
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
2009-08-05 11:21:06 +10:00
Andrew Tridgell
fd43e0ee09 added a uid_wrapper library
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
2009-08-05 10:51:00 +10:00
Günther Deschner
27bb7ac5d1 lib-util: move set_blocking() call into own file.
Guenther
2009-06-10 21:25:57 +02:00
Jelmer Vernooij
7f52c8fb50 libsamba-util: Fix soversion. 2009-06-08 22:43:36 +02:00
Jelmer Vernooij
4602cc0ac1 Build libsamba-util as a shared library. 2009-06-02 18:05:40 +02:00
Günther Deschner
bff54b90c3 util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Guenther
2009-05-29 13:49:58 +02:00
Jeremy Allison
27a3118bcf Make talloc_stack threadsafe using TLS. Volker please
check. Passes make test and basic valgrind testing.
Jeremy.
2009-04-14 12:23:22 -07:00
Stefan Metzmacher
b69e72deda lib/util: build tevent_unix.o and tevent_ntstatus.o as UTIL_TEVENT subsystem
metze
2009-03-19 16:25:58 +01:00
Stefan Metzmacher
24a1b556fc s4:lib/util: fix the build
metze
2009-01-30 18:42:08 +01:00
Stefan Metzmacher
94cb0835ca s4:build: kill DEFAULT_HEADERS variable
metze
2009-01-30 17:38:40 +01:00
Jelmer Vernooij
ce67cf0456 Install additional libutil headers. 2008-11-01 01:29:12 +01:00
Jelmer Vernooij
d70efa57ce Merge branch 'master' of git://git.samba.org/samba
Conflicts:
	lib/util/asn1_proto.h
2008-10-23 18:04:16 +02:00
Jelmer Vernooij
2f265feb17 Inline asn1_proto.h since the API is stable and public. 2008-10-23 18:03:20 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Jelmer Vernooij
63de2d9823 Move substitute functions to a different file. 2008-10-18 15:56:45 +02:00
Jelmer Vernooij
519458a2fa Use shared util.c. 2008-10-18 14:27:13 +02:00
Jelmer Vernooij
3b0a1b0363 Make util_tdb.h static since it is now used by Samba3. 2008-10-12 17:50:41 +02:00
Jelmer Vernooij
a52e729f30 Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
Jelmer Vernooij
caa4e42860 Move lib/util from source4 to top-level libutil.
Conflicts:

	source4/Makefile
2008-10-11 21:05:38 +02:00