summaryrefslogtreecommitdiff
path: root/source3/utils/editreg.c
AgeCommit message (Collapse)AuthorFilesLines
2003-04-24More code to do with constructing SK records and self relative SDs.Richard Sharpe1-3/+27
(This used to be commit 7105265238de850f5b7effef3be8fb3f5d383669)
2003-04-24More functions to compute the space taken up by SIDs, ACEs, ACLs, SECRichard Sharpe1-3/+96
DESCs etc, so we can store these in an output file. (This used to be commit 7607a1c3cd5ffb69b8db0bfe50283bda97047c42)
2003-04-23Add more code to store keys and other records ... still more to goRichard Sharpe1-10/+92
(This used to be commit 39f298fd395b91a0cf4bcadf3938b58a9a14c95f)
2003-04-22Complete the space allocation code for HBIN blocks ...Richard Sharpe1-1/+25
(This used to be commit ae5f8e4b5f7b8880293cc94c9bbe0df81a56959e)
2003-04-22Commit more code dealing with allocating space in the HBIN blocks ...Richard Sharpe1-7/+101
(This used to be commit cfa67f23e3e2ba4c7abd40405227b0a8b1b76fc8)
2003-04-22More infrastructure for storing registryRichard Sharpe1-17/+63
(This used to be commit de337632c99080f4be73a6e49839d424b49c8cc3)
2003-04-21Correct comments about breadth first, as the registry tree is stored in aRichard Sharpe1-2/+28
depth first fashion in the file. Also add some more infrastructure needed to handle storing these trees. (This used to be commit f993f7187c7ae49f443aa1966584aa88787bd7ca)
2003-04-21Start the outline of the code to store a registry tree ...Richard Sharpe1-2/+99
(This used to be commit 03fce4ed0f73586928424e75bd6d7db9ff7105dd)
2003-04-21Some comments about the format of the on-disk reg file, as well asRichard Sharpe1-7/+86
partially implement some routines to construct a default ACL and SEC DESC etc. (This used to be commit 043374a3c0be6769b4fee2228dcff42abbb74028)
2003-04-20Add a -f command-line flag to specify printing all paths or only terminalRichard Sharpe1-3/+11
paths. (This used to be commit 0741369c59bcb6057f6b32d3fe4f6dec08ce4ae3)
2003-04-20Well, we can now add keys and values and delete keys and values ...Richard Sharpe1-4/+6
Lots more to do, like handling regular expressions for keys, and input of the security descriptors, etc. However, I now have to work on writing the in-memory tree out to a file in a format that Windows can understand. (This used to be commit 562b36510c704eba84b036aacdb1f984339afafc)
2003-04-20Add code to delete values ...Richard Sharpe1-9/+104
This needs a lot more testing and debugging, but it does delete values. Next to see if it can add values ... (This used to be commit 02e6782243a7ef9e182db449ad377b0d168a40b2)
2003-04-20Begin the code that handles key values ... Delete a key value and add aRichard Sharpe1-4/+58
key value, and tidy up processing of key values when reading in the registry file ... (This used to be commit 53ea4c0de88a350b99e36c0dc514c5f2821ff7f8)
2003-04-20Complete most of the coding for adding keys. We can now add a key.Richard Sharpe1-26/+32
Next, we have to add the code for adding values etc. (This used to be commit 266fc6c9f2283c81de97e526e9f289288948cb27)
2003-04-20The code is a bit of a mess right now.Richard Sharpe1-51/+146
Added code to add keys to the in-momory key tree. Added code to convert SID strings to SIDs in memory format. Added code to construct initial security descriptors and to inherit security descriptors. A couple of more hours should see the code to add keys and values complete. Then I have to start on the code to write out a registry :-( (This used to be commit fc691a9a5e86686ebd0b3bab75a286488ab6ca57)
2003-04-20More functionality, esp around adding keys and inheritance of securityRichard Sharpe1-1/+26
descriptors etc ... (This used to be commit b8e85afefbe52701317632d1c1a446785ed66abf)
2003-04-20MOre functionality ... got to test it.Richard Sharpe1-3/+23
(This used to be commit e3c4f8c91394eecc8c77bbf0f9685cdb18c617b1)
2003-04-19Some more work added ...Richard Sharpe1-5/+20
(This used to be commit 31ded623b1817156b247170130237c1e5fd67a5b)
2003-04-19Squelch some warnings, and move a bit of code around to make some futureRichard Sharpe1-8/+11
things easier ... now on to more functionality. Hope Jerry fixes the breakage, BTW :-) (This used to be commit c7d39a7426e5970b15ece89737d2f0ba3d5c0835)
2003-04-18More minor edits to add features ...Richard Sharpe1-0/+21
(This used to be commit 882799ca113566b91e42c3c852a9c1986552daaa)
2003-04-17More updates ...Richard Sharpe1-2/+64
(This used to be commit 410451f9478ff1e73cabc8ee2213ded4f08315c6)
2003-04-17Updates to editreg.c to provide more functionality ...Richard Sharpe1-261/+1119
Hopefully more coming ... (This used to be commit 22d1819011de02351976bad778837a28ab45a449)
2003-03-23Convert to popt.Jelmer Vernooij1-42/+29
(This used to be commit 691c63ad6b522ae7984017ebadffb5c7c13f6992)
2003-02-16Recover much of my changes to editreg.c. Add some const and start codingRichard Sharpe1-8/+203
the regedit file parser etc. (This used to be commit 5040b498675b91cd18bc7fe4456c94df0a8fa41d)
2003-01-08Some fixes to editreg. Clientgen should not be touched, and an update to ↵Richard Sharpe1-3/+0
configure that Herb needs. (This used to be commit 490ff93bbfe38d92746693d5f9902f985de6bc12)
2003-01-07this makes it compile, but I'm not sure if it is correct. Are we reallyHerb Lewis1-1/+1
testing a pointer value to be equal to 0x19 ??? (This used to be commit 15b2b91f4b77a62163c0f79592111d4809317b9f)
2003-01-07'index' is the name of a libc function. Rename to 'ndx' to avoid compilerTim Potter1-4/+4
warnings. (This used to be commit 431ac28b5b7ea688ec342b5834c25eca059e7a16)
2003-01-02BIG patch...Andrew Bartlett1-10/+10
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-17Start adding code to allow the in memory version of the registry treeRichard Sharpe1-23/+168
structure to be manipulated. Keys can be partially deleted now. (This used to be commit 9181ba0c682c3f37bbbaab96928c39757491d225)
2002-12-16We now read in the whole of the registry, including security bits.Richard Sharpe1-13/+21
Still have to make sure that the datastructure is correct, though. Then on to writing it out and editing/changing keys, values and sec_descriptors (This used to be commit 8686b551cd0158a72c1ba4dfea6af5d0d7049210)
2002-12-15All the code for reading in the registy is done, but I have a malloc'dRichard Sharpe1-21/+83
area overrun somewhere :-( (This used to be commit 330012a4d787c8b4a2eb6a4b77f53110815e073e)
2002-12-15Almost finished processing the registry encoded SEC DESC ...Richard Sharpe1-1/+102
Soon to move onto writing these things out. (This used to be commit eb2f1c826b28647fc99b46e203fe90147f7f3d05)
2002-12-14More code to read in and create security descriptor entries ...Richard Sharpe1-28/+121
(This used to be commit 3564565d33e0e3a691e5014e39ab2e5156112a08)
2002-12-13Begin to handle Security descriptors for keys.Richard Sharpe1-0/+95
(This used to be commit eca76f2f6609c9decd5cb9dcf7ab9b75c2a805a6)
2002-12-11Fix a small bug.Richard Sharpe1-2/+2
(This used to be commit 16e0a3cc0834b691fcfec75d20dfdd5fa4d0afa6)
2002-12-11Improve the iterator wrt values ... Now prints keys and value names.Richard Sharpe1-6/+60
Does not print value values, yet. (This used to be commit fbdd850e5a53e6e2c60dbf1eb6cdcf732307135f)
2002-12-10Tidy up some bits. We can now at least list all the keys.Richard Sharpe1-16/+26
More work to do on the iterators and access functions. Still not King. Stinks really. (This used to be commit f4235ae1e6e691436d3b6dc2e903950b514a7601)
2002-12-10Add support to Makefile.in for editregRichard Sharpe1-3/+0
Fix a couple of duplicated macros. (This used to be commit 5273844a748230f710d860e33bdcde1c0b1e6c6f)
2002-12-10Complete more of the code. An iterator is close to complete. Compiles,Richard Sharpe1-18/+87
but not tested as yet. (This used to be commit 6b2943122a5008e0b06b52fcefd5e88326d9ecaa)
2002-12-10Clean up the code some more. Create more elements of the tree.Richard Sharpe1-7/+84
Security Descriptors/Keys not yet processed. Make debugging printfs only occur if verbose is set. Create an iterator for the registry key. Still not King. Bother! (This used to be commit 8bc6aa72f533976493dba7c70a95cdfc8856f0d4)
2002-12-09Handle the creation of more parts of the tree ... Still have to do SK recordsRichard Sharpe1-3/+38
and the data parts of the VK records. Also have to code up routines that can iterate across keys and values, as well as return values associated with a particular key, etc. (This used to be commit 8dd608f7adeab33655b7eb139185108a69f64906)
2002-12-09Start allocating structures to keep the in memory copy of the registry treeRichard Sharpe1-5/+52
in. Don't yet handle the SK records (security descriptors), but will soon. It still compiles on Linux, but I am still not King. (This used to be commit b51bb89841b7251b90a7a58f0a046d87803223a9)
2002-12-09Begin to decode Value Keys, names and values ...Richard Sharpe1-0/+79
(This used to be commit 0ee49da74d357cc73ff4c7e4ee5659a35d085d4c)
2002-12-09Add some more handling of Key records ...Richard Sharpe1-8/+124
(This used to be commit 738a82110893b08fc701fbf7b639fa8cb6e116c7)
2002-12-08Commit some more changes ... Start processing the sub-keys, recursively.Richard Sharpe1-4/+30
(This used to be commit bab2b240ec9a04b636c80599489746529cdd9d57)
2002-12-08Fix the breakage, and start processing the first key record:Richard Sharpe1-8/+110
./editreg ~rsharpe/profile/NTUSER.DAT NK HDR: Name len: 12, class name len: 0 Key name: $$$PROTO.HIV (This used to be commit 63efb7ab2f4d010d6df97c539c6225093cdbbdb1)
2002-12-08Define some macros for accessing shorts and ints in an endian independent ↵Richard Sharpe1-19/+46
manner. Start processing the header and etc. Make sure it compiles on Linux, and runs on Linux for the code that is there. Will try FreeBSD soon, and maybe Slowaris. (This used to be commit ee998438618c088d04ddfed05a9ba2d65f36e4ac)
2002-12-08Add definitions of the various NT Registry on-disk structures ...Richard Sharpe1-3/+181
(This used to be commit a4f9b9effc9491bdc4d0fe4bea3d25d7436e6a71)
2002-12-08Fix DAT_TIME so it becomes NTTIME and matches Samba source.Richard Sharpe1-3/+12
Add code to start reading the registry file. (This used to be commit 10bc459dd9d3b5e695f9e18624200705a1bf33dc)
2002-12-08Some more updates ...Richard Sharpe1-2/+43
(This used to be commit 92697adcd72434bcc38b98d618f013746a4db2ed)