gp_inf: Parse the GptTmpl.inf file which stores security settings
authorGarming Sam <garming@catalyst.net.nz>
Tue, 15 May 2018 05:12:17 +0000 (17:12 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 21:42:21 +0000 (23:42 +0200)
commitdac3c204bef32a524b442db877dcd8af9757ddea
tree954f6d90be2b81fc88d0d1a25ac546c04f56ca14
parent4a69308b7a5fa3f14681fd951999500129ee5bea
gp_inf: Parse the GptTmpl.inf file which stores security settings

This is NOT an ini file and CANNOT be parsed by Python ConfigParser
without losing information (it would likely eat meaningful whitespace
and so should not be done).

There are three main types of settings:

 * Name,Mode,ACL
 * key = value
 * registry key and value

   Note: This appears as key=value, but registry keys in the general
   case may have = in their names, so we record the entire string in
   order to be as safe as possible.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gp_parse/gp_inf.py [new file with mode: 0644]