summaryrefslogtreecommitdiff
path: root/source3/registry/reg_api.c
Commit message (Collapse)AuthorAgeFilesLines
* Correct "perfom" typos.Chris Lamb2017-02-221-1/+1
| | | | | | Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* werror: replace WERR_REG_IO_FAILURE with WERR_REGISTRY_IO_FAILED in ↵Günther Deschner2016-09-281-3/+3
| | | | | | | | | source3/registry/ Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in ↵Günther Deschner2016-09-281-2/+2
| | | | | | | | | source3/registry/ Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/registry/Günther Deschner2016-09-281-15/+15
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/registry/Günther Deschner2016-09-281-10/+10
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Change the registry subsystem to use uint32_t from uint32. Also change ↵Richard Sharpe2015-04-161-10/+10
| | | | | | | | | | session.h. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 16 00:37:28 CEST 2015 on sn-devel-104
* registry: Don't leave dangling transactionsVolker Lendecke2014-10-081-1/+1
| | | | | | | | When a createkey fails due to access denied, we need to do a transaction_cancel. Otherwise the lock on the db will stay around. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s3-registry: fix typo in DEBUG statement.Günther Deschner2014-01-071-1/+1
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:registry accept windows like long hivenamesGregor Beck2013-03-201-3/+9
| | | | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Wed Mar 20 17:08:52 CET 2013 on sn-devel-104
* s3:registry: untangle assignment from check in reg_enumkey()Michael Adam2012-07-051-1/+2
| | | | | Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 5 17:57:16 CEST 2012 on sn-devel-104
* s3:registry: untangle assignment from check in reg_enumvalue()Michael Adam2012-07-051-1/+2
|
* s3:registry: silence net_deletekey_recursiveGregor Beck2012-06-261-4/+4
| | | | | | WERR_BADFILE may not be an error for the caller because the result is the same. Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Remove an unused variableVolker Lendecke2012-04-261-1/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 26 12:17:14 CEST 2012 on sn-devel-104
* s3:registry: replace call to reg_openkey() in reg_createkey() by accesscheck.Michael Adam2012-04-251-8/+10
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: remove a superfluous fill_subkey_cache() in reg_createkey()Michael Adam2012-04-251-5/+0
| | | | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: use fill_subkey_cache to check exsistence in ↵Michael Adam2012-04-251-11/+2
| | | | | | | | regkey_open_onelevel(). Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: let fill_subkey_cache return WERR_BADFILE when the subkey list ↵Michael Adam2012-04-251-1/+1
| | | | | | | | | | could not be loaded WERR_NO_MORE_ITEMS seems inappropriate. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: convert reg_openkey() to use talloc instead of SMB_STRDUP etcMichael Adam2012-04-251-15/+12
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry untangle an assignment from the check in regkey_open_onelevel()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check in regkey_open_onelevel()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_deletekey() into a transactionMichael Adam2012-04-251-2/+25
| | | | | | This is wrong layering but fixes a race condition. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_createkey() in a transactionMichael Adam2012-04-251-6/+30
| | | | | | | | | This is wrong layering (calling into regdb_transaction* in the reg_api code) but fixes a potential race. It makes the multi-step create procedure atomic. This should completely be done in the backend. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignments from checks in reg_createkey()Michael Adam2012-04-251-2/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: wrap reg_deletevalue() in a transactionMichael Adam2012-04-251-4/+30
| | | | | | | This is at the wrong layer, but if fixes a race potentially causing data corruption by concurrent access. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check in reg_deletevalue()Michael Adam2012-04-251-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: fix race in reg_setvalue that could lead to data corruptionMichael Adam2012-04-251-6/+33
| | | | | | | | (there was no lock around fetching the values and storing them) The layering is wrong in that it uses regdb transactions in reg_api Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: untangle assignment from check and add a debugmessage in ↵Michael Adam2012-04-251-1/+3
| | | | | | reg_setvalue() Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: don't leak the old contents when updating the value cacheMichael Adam2012-04-251-0/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry:reg_api: fix reg_queryvalue to not fail when values are modified ↵Michael Adam2012-04-251-1/+45
| | | | | | while it runs Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:registry: enhance debugging of deletekey_recursiveMichael Adam2011-08-151-0/+14
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 15 19:34:44 CEST 2011 on sn-devel-104
* s3:registry avoid updating keys which are going to be deleted inGregor Beck2011-08-081-23/+34
| | | | | | | | | reg_deletekey_recursive this changes the complexity from O(n^2) to O(n) and reduces the time of a 'net conf drop' with 10000 shares from 6min to 1.5s Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_initGregor Beck2011-07-141-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-registry: remove some unused headers.Günther Deschner2011-03-181-1/+0
| | | | Guenther
* s3-amend: Don't overwrite existing valuesVolker Lendecke2011-02-151-0/+10
| | | | | | | | | This saves a ton of tdb transactions on smbd startup Andreas, Günther, please check! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Feb 15 19:11:25 CET 2011 on sn-devel-104
* s3:registry: in deletekey_recursive, fix return code upon error.Michael Adam2011-01-301-3/+10
| | | | | | | correctly keep the werr from inside the transaction when the opearation inside the transaction fails. What is the correct behaviour if the cancel operation fails?
* s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursiveMichael Adam2010-09-221-21/+9
|
* s3:registry: move the reg_api prototypes to their own header.Michael Adam2010-09-211-0/+1
|
* s3:registry:reg_api: update (C)Michael Adam2010-09-211-1/+1
|
* s3:registry: move (commented out) hilvl util functions to reg_api_util.cMichael Adam2010-09-201-98/+0
|
* s3:registry: move higher level function reg_open_path to new module reg_api_utilMichael Adam2010-09-201-56/+0
| | | | | The reg_api.c code should just export functions that direclty relate to winreg api calls.
* s3-registry: move regf based reg_api calls into own file.Günther Deschner2010-09-201-272/+0
| | | | Guenther
* s3-registry: add reg_querymultiplevalues to reg_api matching table.Günther Deschner2010-09-201-2/+2
| | | | Guenther
* s3-auth Change struct nt_user_token -> struct security_tokenAndrew Bartlett2010-09-111-5/+5
| | | | | | | | This common structure is defined in security.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-registry: remove unused reg_util_marshalling code.Günther Deschner2010-07-021-1/+0
| | | | Guenther
* s3-registry: avoid using registry_value union.Günther Deschner2010-07-021-15/+8
| | | | | | Just pull and push data as is. Guenther
* s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().Günther Deschner2010-07-011-1/+1
| | | | Guenther
* s3-registry: add reg_querymultiplevalues() to reg_api.Günther Deschner2010-06-301-0/+50
| | | | Guenther
* s3-registry: Convert registry key delimiter from slash to backslash.Andreas Schneider2010-06-251-10/+0
| | | | | | | This is needed to support keynames containing a '/' like TCP/IP. Which is used in serveral standard paths. Signed-off-by: Michael Adam <obnox@samba.org>