summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_winreg_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-21s3:registry: move reg_api_regf prototypes to their own header file.Michael Adam1-0/+1
These two calls are currently only used in the WINREG rpc server. And this reqires linking in the regfio code.
2010-09-21s3:registry: move the reg_api prototypes to their own header.Michael Adam1-0/+1
2010-09-11s3-privs Convert from user_has_privileges() -> security_token_has_privilege()Andrew Bartlett1-5/+4
This new call is available in the merged privileges code, and takes an enum as the parameter, rather than a bitmask. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-26s3-build: only include rpc_misc.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-13Eliminate any chance of a class of "uninitialized auto variable" errors.Jeremy Allison1-26/+24
Jeremy.
2010-08-12Fix bug #7617 - smbd coredump due to uninitialized variables in the ↵Jeremy Allison1-2/+2
performance counter code. In the file rpc_server.c, function _winreg_QueryValue() uint8_t *outbuf Should be : uint8_t *outbuf = NULL; As it is later freed by if (free_buf) SAFE_FREE(outbuf); in some cases, this frees the unintialized outbuf, which causes a coredump.
2010-07-28s3-winreg: Use struct pipes_struct.Andreas Schneider1-42/+78
2010-07-16Move the remnants of rpc_parse code under registry/Simo Sorce1-0/+1
The registry code is the only last user of this code. Move everything under registry/ and hope someone will get rid od it completely from there in the future. Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-02s3-registry: remove unused reg_util_marshalling code.Günther Deschner1-1/+0
Guenther
2010-07-02s3-registry: avoid using registry_value union.Günther Deschner1-33/+17
Just pull and push data as is. Guenther
2010-06-30s3-winreg: implement _winreg_QueryMultipleValues().Günther Deschner1-6/+15
Guenther
2010-06-30s3-winreg: implement _winreg_QueryMultipleValues2().Günther Deschner1-5/+114
Guenther
2010-06-03s3-security: use shared "Standard access rights.".Günther Deschner1-2/+2
Guenther
2010-05-25s3:registry: extract registry_pull/push_value prototypes into own headerMichael Adam1-0/+1
reg_util_marshalling.h and use them only where needed.
2010-05-25s3:registry: extract reg_perfcount prototypes into header of their own.Michael Adam1-0/+1
And use them only when necessary.
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2010-04-16s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.Andreas Schneider1-1/+3
2010-04-09s3-winreg: add winreg_DeleteKeyEx stub.Günther Deschner1-0/+12
Guenther
2010-03-16s3-winreg: change notify call has no meaning when called remotely.Günther Deschner1-4/+0
Just return not supported to make smbtorture happy. Guenther
2010-03-11s3-winreg: make QueryValue pass RPC-WINREG test again.Günther Deschner1-0/+4
Guenther
2010-03-11s3-winreg: fix some function names in debug statements.Günther Deschner1-3/+3
Guenther
2010-03-11s3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.Günther Deschner1-11/+8
Found by RPC-WINREG smbtorture test. Guenther
2010-03-10s3-winreg: add some debug statements to _winreg_QueryValue().Günther Deschner1-2/+6
Guenther
2009-12-07s3-winreg: fill in some inline comments.Günther Deschner1-10/+38
Guenther
2009-12-07s3-winreg: remove trailing whitespace.Günther Deschner1-40/+40
Guenther
2009-11-26s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner1-0/+1
samba. Guenther
2009-03-18s3: remove POLICY_HND.Günther Deschner1-3/+3
Guenther
2009-01-08Now that all policy_handle free_fn's are just TALLOC_FREE, dump free_fnVolker Lendecke1-15/+5
2008-11-24Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!Volker Lendecke1-4/+6
2008-10-15s3: fix s3 winreg server after idl changes.Günther Deschner1-8/+8
Guenther
2008-10-15Rename reboot -> do_reboot since the first is a reserved name on FreeBSD.Jelmer Vernooij1-2/+2
2008-10-15Share initshutdown.idl.Jelmer Vernooij1-4/+4
2008-07-22Fix warnings on FreeBSD-based platformsZach Loafman1-4/+4
Fix two shadowed declaration warnings on FreeBSD-based platform: 'reboot' is a 4.0BSD syscall in unistd.h and 'tcp_seq' is a typedef in netinet/tcp.h. (This used to be commit 14d2a4da1da38d6f69c63505d35990322f253e5d)
2008-06-13Fix a crash in _winreg_QueryValueVolker Lendecke1-0/+4
Coverity ID 474, value_length and type are both unique, not ref pointers and can thus be NULL. Karolin, please merge this to -stable. Thanks, Volker (cherry picked from commit 999533c0ccced59141d8baff5bc248d63e2a966f) (This used to be commit 7e07ec68f15908a998f83d615a1b4d1349935a54)
2008-03-28srv_winreg: add a debug message to _winreg_CreateKey().Michael Adam1-0/+3
Michael (This used to be commit 971f6749ed23523f6eafe5136f6d4c920c20aec4)
2008-03-25Fix _winreg_QueryValue().Günther Deschner1-7/+7
Guenther (This used to be commit b217dd674e22b6a7cc492f1a84a37ddc4ddca663)
2008-03-17Coverity fixesMarc VanHeyningen1-2/+4
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-05Fix Coverity ID 565Volker Lendecke1-2/+0
This would crash safely (This used to be commit 0f14357c86aee9a76ffbb45ea6419f4cc4106d62)
2008-02-18Fix a comment. REGISTRY_KEY has vanished from srv_winreg_nt.cMichael Adam1-1/+1
(It is reg_api time) Michael (This used to be commit d94998e46ba0faac3fa625e8292d452ad52b8e55)
2008-02-15Move the implementation of _winreg_RestoreKey to reg_api.cMichael Adam1-121/+1
This removes the internals of reg_api from srv_winreg_nt.c entirely, only reg_api is used there, now. This enlarges the dependencies of reg_api somewhat now since it adds regfio. But this can be separated out later. The current goal is to achieve a complete use of reg_api. Michael (This used to be commit 2222acbac955cd6d5bd48d1ce5cf4b4c7c067093)
2008-02-15Move implementation of _winreg_SaveKey() from srv_winreg_nt.c to reg_api.cMichael Adam1-170/+1
This gives a new function reg_savekey() and hides a piece of the backend code from srv_winreg_nt.c. One step towards using reg_api throughout samba code. Michael (This used to be commit bf6340d00dd631fdc909c20632250977a3a112c4)
2008-01-17Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.Michael Adam1-3/+1
Michael (This used to be commit 903223b160eef6ba6ff19a8bfef19e5fe7008631)
2008-01-17Use reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().Michael Adam1-2/+2
Rationale: Use reg_api instead of backend functions. Michael (This used to be commit f986a708be15dd9b9fc28b9862f64f2d0f94accc)
2007-12-21Some C++ fixesVolker Lendecke1-1/+3
(This used to be commit 5c392c4c6e277a24d0d477902dc7856b2b46ee53)
2007-12-21Some C++ warningsVolker Lendecke1-1/+1
(This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
2007-11-27Fixed obvious typo.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 9755c5311416f17bac0a848d027cafb3fd487618)
2007-11-27Remove pstring from everything in rpc_server exceptJeremy Allison1-109/+147
srv_spoolss_nt.c and srv_srvsvc_nt.c. They're next :-). Jeremy. (This used to be commit 55b4f9d003b036af69085f7b64e0df08c5ba440d)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-13/+14
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-5/+5
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25534: Apply some constVolker Lendecke1-1/+1
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...." (This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)