1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

29 Commits

Author SHA1 Message Date
Günther Deschner
5838d81346 Remove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.
Guenther
2008-03-20 01:40:04 +01:00
Günther Deschner
9ac2606d52 Remove unused marshalling for SVCCTL_SET_SERVICE_SEC.
Guenther
2008-02-28 00:43:31 +01:00
Günther Deschner
a69c6422bb Remove unused marshalling for SVCCTL_QUERY_SERVICE_SEC.
Guenther
2008-02-28 00:43:30 +01:00
Günther Deschner
eeb598a19a Remove unused marshalling for SVCCTL_UNLOCK_SERVICE_DB.
Guenther
2008-02-19 03:13:58 +01:00
Günther Deschner
23d37a9aed Remove unused marshalling for SVCCTL_LOCK_SERVICE_DB.
Guenther
2008-02-19 03:13:42 +01:00
Günther Deschner
8a621f517f Remove unused marshalling for SVCCTL_QUERY_STATUS.
Guenther
2008-02-19 03:13:26 +01:00
Günther Deschner
84112a24f5 Remove unused marshalling for SVCCTL_CONTROL_SERVICE.
Guenther
2008-02-19 03:13:02 +01:00
Günther Deschner
57e03a7fd5 Remove unused marshalling for SVCCTL_START_SERVICE.
Guenther
2008-02-19 03:12:37 +01:00
Günther Deschner
144f41e7c3 Remove unused marshalling for SVCCTL_GET_DISPLAY_NAME.
Guenther
2008-02-18 13:45:36 +01:00
Günther Deschner
e0a8818af0 Remove unused marshalling for SVCCTL_OPEN_SERVICE.
Guenther
2008-02-18 12:58:44 +01:00
Günther Deschner
1162b8a02d Remove unused marshalling for SVCCTL_OPEN_SCMANAGER.
Guenther
2008-02-18 12:12:43 +01:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Volker Lendecke
6585ea2cb7 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
2007-10-10 12:30:24 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Gerald Carter
0b1bc3521f r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26 2007-10-10 12:23:01 -05:00
Jeremy Allison
3df99006f8 r22577: Change all of parse/*.c to use standard form. Fix some
marshalling bugs.
Jeremy.
2007-10-10 12:19:46 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00
Gerald Carter
cefd2d7cb6 r12914: adding query/set ops for security descriptors on services. 2007-10-10 11:06:07 -05:00
Gerald Carter
ba67d3ae04 r12176: fix type mismatch after rpc structure change in rpc_svcctl.h 2007-10-10 11:05:48 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Gerald Carter
f775fc7209 r8956: fix segfault caused by trying to parse a UNISTR2
and not a UNISTR2*
2007-10-10 11:00:22 -05:00
Gerald Carter
d8ae9f2b3e r8899: various compiler warning fixes reported by Jason Mader <jason@ncac.gwu.edu> 2007-10-10 11:00:19 -05:00
Gerald Carter
e04fd56e00 r7839: remove C++ style comment 2007-10-10 10:57:59 -05:00
Gerald Carter
560ce111ce r7563: svcctl patches from Marcin; have cleaned up formating and am checking the code in to snapshot it before I start changing more things 2007-10-10 10:57:14 -05:00
Gerald Carter
0e29dc8aa3 r6071: * clean up UNISTR2_ARRAY ( really just an array of UNISTR4 + count )
* add some backwards compatibility to 'net rpc rights list'
* verify privilege name in 'net rpc rights privileges <name>' in order
  to give back better error messages.
2007-10-10 10:56:20 -05:00
Gerald Carter
b921bf5688 r6046: $ net -S block -U % -W VALE rpc service status spooler
spooler service is SVCCTL_RUNNING.
Configuration details:
        Service Type         = 0x110
        Start Type           = 0x2
        Error Control        = 0x1
        Tag ID               = 0x0
        Executable Path      = C:\WINNT\system32\spoolsv.exe
        Load Order Group     = SpoolerGroup
        Dependencies         = RPCSS/
        Start Name           = LocalSystem
        Display Name         = Print Spooler
2007-10-10 10:56:18 -05:00
Gerald Carter
4da89ef17b r6038: adding more flesh to 'net rpc service'
open and close the service control manager.

Also experimenting with ideas for cli_xxx() interface.
2007-10-10 10:56:17 -05:00
Gerald Carter
4e0ac63c36 r6014: rather large change set....
pulling back all recent rpc changes from trunk into
3.0.  I've tested a compile and so don't think I've missed
any files.  But if so, just mail me and I'll clean backup
in a couple of hours.

Changes include \winreg, \eventlog, \svcctl, and
general parse_misc.c updates.

I am planning on bracketing the event code with an
#ifdef ENABLE_EVENTLOG until I finish merging Marcin's
changes (very soon).
2007-10-10 10:56:15 -05:00