Günther Deschner
84a079af49
Make sure to zero the returned handle in _svcctl_CloseServiceHandle().
...
Guenther
2008-03-27 23:31:54 +01:00
Günther Deschner
988291a9c0
Use pidl for _svcctl_EnumDependentServicesW().
...
Guenther
2008-03-20 01:38:23 +01:00
Günther Deschner
5895b973a4
Fix debug statement (missing \n).
...
Guenther
2008-03-07 13:07:50 +01:00
Günther Deschner
19048ab4ad
Use pidl for _svcctl_SetServiceObjectSecurity().
...
Guenther
2008-02-28 00:43:31 +01:00
Günther Deschner
7c1d30f3dc
Use pidl for _svcctl_QueryServiceObjectSecurity().
...
Guenther
2008-02-28 00:43:30 +01:00
Günther Deschner
300bf76a79
Use pidl for _svcctl_UnlockServiceDatabase().
...
Guenther
2008-02-19 03:13:50 +01:00
Günther Deschner
939da2eb58
Use pidl for _svcctl_LockServiceDatabase().
...
Guenther
2008-02-19 03:13:34 +01:00
Günther Deschner
5453d97ef4
Use pidl for _svcctl_QueryServiceStatus().
...
Guenther
2008-02-19 03:13:10 +01:00
Günther Deschner
4797ca0bd5
Use pidl for _svcctl_ControlService().
...
Guenther
2008-02-19 03:12:46 +01:00
Günther Deschner
d95998ffd3
Use pidl for _svcctl_StartServiceW().
...
Guenther
2008-02-19 03:12:11 +01:00
Günther Deschner
2746e88c5c
Use pidl for _svcctl_GetServiceDisplayNameW().
...
Guenther
2008-02-18 13:43:12 +01:00
Günther Deschner
b2fa41072d
Use pidl for _svcctl_OpenServiceW().
...
Note that this call did and still does panic in registry access.
Michael has an idea how to fix this.
Guenther
2008-02-18 12:58:43 +01:00
Günther Deschner
1131e914df
Use pidl for _svcctl_OpenSCManagerW().
...
Guenther
2008-02-18 11:55:31 +01:00
Günther Deschner
d752d52f1a
Remove whitespace, no code changes.
...
Guenther
2008-02-18 11:51:17 +01:00
Volker Lendecke
bc3bd7a8e7
Remove tiny code duplication
...
ndr_size_security_descriptor does the same as sec_desc_size
2007-12-29 23:13:26 +01:00
Volker Lendecke
5c392c4c6e
Some C++ fixes
2007-12-21 09:58:21 +01:00
Jeremy Allison
b4dfec09e8
More static fstring elimination.
...
Jeremy.
2007-12-17 18:00:43 -08:00
Jeremy Allison
55b4f9d003
Remove pstring from everything in rpc_server except
...
srv_spoolss_nt.c and srv_srvsvc_nt.c.
They're next :-).
Jeremy.
2007-11-27 11:22:58 -08: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
Gerald (Jerry) Carter
5c6c8e1fe9
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
2007-10-10 15:34:30 -05:00
Volker Lendecke
0141e64ad4
r25534: Apply some const
...
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
2007-10-10 12:31:12 -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
Volker Lendecke
e2a35ceffe
r19776: Hmmm. I should have done one instead of three commits. Sorry :-)
2007-10-10 12:15:54 -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
Jeremy Allison
cd3ad3f1a6
r14395: Fix coverity bug #55 . Ensure no unsigned/signed comparisons.
...
Jeremy.
2007-10-10 11:15:28 -05:00
Jeremy Allison
1fece52da4
r14338: Fix coverity #55 by explicit cast.
...
Jeremy.
2007-10-10 11:15:25 -05:00
Gerald Carter
6c4ede6cee
r13393: Do not initialize the lp_svcctl_list() value since it is handled
...
internally in services_db.c now. This prevents internal services from
being listed twice (one internal and one external) when no
'svcctl list' parameter is explcitly set in smb.conf
2007-10-10 11:09:58 -05:00
Gerald Carter
5842da9968
r12915: protect against changing the SCM security descriptor
2007-10-10 11:06:07 -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
c0f54eeebc
r12173: doing some service control work
...
* Add a few new error codes for disabled services
* dump some more details about service status in 'net rpc service'
* disable the WINS and NetLogon services if not configured in smb.conf
Still trying to figure out how to disable the start button
on the NetLogon and WINS services.
2007-10-10 11:05:47 -05:00
Jeremy Allison
c65b752604
r12043: It's amazing the warnings you find when compiling on a 64-bit
...
box with gcc4 and -O6...
Fix a bunch of C99 dereferencing type-punned pointer will break
strict-aliasing rules errors. Also added prs_int32 (not uint32...)
as it's needed in one place. Find places where prs_uint32 was being
used to marshall/unmarshall a time_t (a big no no on 64-bits).
More warning fixes to come.
Thanks to Volker for nudging me to compile like this.
Jeremy.
2007-10-10 11:05:42 -05:00
Gerald Carter
f10aa9fb84
r10781: merging eventlog and svcctl code from trunk
2007-10-10 11:04:53 -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
35b338a4fc
r10264: reverse order of 'root free pass' checks in service and registry access_checks()
2007-10-10 11:03:39 -05:00
Gerald Carter
2490118796
r10221: add "free pass for root" in svcctl and default winreg access checks
2007-10-10 11:03:38 -05:00
Tim Potter
abe2ab72e6
r9276: Fix another unused variable warning. Bugzilla #2981 .
2007-10-10 11:00:30 -05:00
Gerald Carter
04a551f0a4
r8943: Fix segfault in enum_service_status
2007-10-10 11:00:21 -05:00
Tim Potter
6d0aafa599
r8941: Fix unused variable warning. Bugzilla #2940 .
2007-10-10 11:00:21 -05:00
Tim Potter
7648f6cef0
r8894: Fix a warning. Bugzilla #2939 .
2007-10-10 11:00:19 -05:00
Gerald Carter
707b782228
r7624: * removed unmatched tdb_lock_by_string() call (should fix build farm issues)
...
* comment out services.tdb code until I finish rewriting it
2007-10-10 10:57:17 -05:00
Gerald Carter
dafb32c01f
r7613: small changes to _svcctl_open_service() and create_open_service_handle() to prevent invalid service names from being accepted; printmig.exe now migrates drivers successfully
2007-10-10 10:57:16 -05:00
Gerald Carter
f19c10d0c3
r7610: can successfully stop and start the 'spooler' service by setting the state for the 'disable spoolss' parameter in memory for an individual smbd
2007-10-10 10:57:16 -05:00
Gerald Carter
793d28a946
r7603: * fix a bug in the SERVICE_ALL_ACCESS security mask
...
* add calls to start and stop a service (to be filled
in by the backend routines in services/svc_*.c
2007-10-10 10:57:15 -05:00
Gerald Carter
2b0ea30a1a
r7595: start trying to split out the svcctl functions into separate files for better maintenance; add SERVICE_CONTROL_OPS for spoolss service
2007-10-10 10:57:15 -05:00
Gerald Carter
82b76d4b34
r7583: * more rearranging and renaming of functions
...
* add access checks to _svcctl_XXX() calls based on
the access granted on the handle
2007-10-10 10:57:15 -05:00
Gerald Carter
11902e503e
r7576: implement access checks for open_scm and open_service
...
according to default security descriptor described in MSDN.
no one can get in to due to the permissions, but i'll fix
that next.
2007-10-10 10:57:14 -05:00
Gerald Carter
24b369d12f
r7573: you can't make an omlette without break a few eggs....start reworking the svcctl code
2007-10-10 10:57:14 -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