The Samba-Bugzilla – Attachment 16601 Details for
Bug 14687
GPO restore fails if an empty REG_MULTI_SZ is encountered in registry.pol.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch passing test suite
file_14687.txt (text/plain), 3.56 KB, created by
Kacper
on 2021-04-29 18:31:59 UTC
(
hide
)
Description:
Patch passing test suite
Filename:
MIME Type:
Creator:
Kacper
Created:
2021-04-29 18:31:59 UTC
Size:
3.56 KB
patch
obsolete
>From e0faae07b42941dec05ad9d45c8fdb5d407fe89d Mon Sep 17 00:00:00 2001 >From: Kacper <kacper@kacper.se> >Date: Thu, 29 Apr 2021 20:21:37 +0200 >Subject: [PATCH] Fix for "GPO restore fails if an empty REG_MULTI_SZ is > encountered in registry.pol.xml" #14687 > >--- > python/samba/gp_parse/gp_pol.py | 2 +- > .../Machine/Registry.pol.SAMBABACKUP | Bin 18426 -> 19186 bytes > .../Machine/Registry.pol.xml | 22 +++++++++++++++++- > 3 files changed, 22 insertions(+), 2 deletions(-) > >diff --git a/python/samba/gp_parse/gp_pol.py b/python/samba/gp_parse/gp_pol.py >index 8a3d5f58ec1..0604edb8d0a 100644 >--- a/python/samba/gp_parse/gp_pol.py >+++ b/python/samba/gp_parse/gp_pol.py >@@ -76,7 +76,7 @@ class GPPolParser(GPParser): > # entry.size = int(e.attrib['size']) > > if misc.REG_MULTI_SZ == entry_type: >- values = [x.text for x in e.findall('Value')] >+ values = [x.text for x in e.findall('Value') if x.text] > entry.data = (u'\x00'.join(values) + u'\x00\x00').encode('utf-16le') > elif (misc.REG_NONE == entry_type): > pass >diff --git a/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.SAMBABACKUP b/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.SAMBABACKUP >index 2a15aacd96dab84405a7be461f64d87d61b03801..c5b17f5fb3d7d1696297574174dec9be0174a32f 100644 >GIT binary patch >delta 518 >zcmey>&-iI7<Az`Eg3%1Y4EYRc3?&TZ42cXy45^bH<t=R;847?f0Laf|C<BToGgLA# >zFjzDAFr)%iLS&19bTSa8G86-$Gf-77kX^)(IC-zUG%tpk^%R-O5YG?_v;}0oCqo|4 >zwtOI20_5d0<S_UH-5<h`0d`3$+;t%LvV&dC0wO1$w&%ulRW_xras#@c2pkHIK$qkI >jdF8m=GWnprD5eXlsOJI~U<l*^V~Su{0K<cUA(jCE^A~1e > >delta 9 >Qcmew~mGM_U<Az`E02(j_1ONa4 > >diff --git a/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml b/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml >index d21a5fc7496..92a65985086 100644 >--- a/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml >+++ b/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml >@@ -1,4 +1,4 @@ >-<PolFile num_entries="76" signature="PReg" version="1"> >+<PolFile num_entries="80" signature="PReg" version="1"> > <Entry type="0" type_name="REG_NONE"> > <Key>SOFTWARE\Policies\Microsoft\NetworkAccessProtection\ClientConfig\Enroll\HcsGroups</Key> > <ValueName /> >@@ -413,4 +413,24 @@ > <ValueName>Version</ValueName> > <Value>2</Value> > </Entry> >+ <Entry type="4" type_name="REG_DWORD"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera</ValueName> >+ <Value>0</Value> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_UserInControlOfTheseApps</ValueName> >+ <Value /> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_ForceAllowTheseApps</ValueName> >+ <Value /> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_ForceDenyTheseApps</ValueName> >+ <Value /> >+ </Entry> > </PolFile> >\ No newline at end of file >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14687
:
16589
|
16598
| 16601