From 8fa53985920f16b0e79c4386e90bfd1bb25be347 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Tue, 15 Dec 2020 12:48:30 -0700 Subject: [PATCH] gpo: Security gpext rsop list only own policies The rsop should only list the policies from that extension, not from all policies in the same file. Signed-off-by: David Mulder Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Feb 11 18:28:09 UTC 2021 on sn-devel-184 --- python/samba/gp_sec_ext.py | 6 ++++-- selftest/knownfail.d/gpo | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 selftest/knownfail.d/gpo diff --git a/python/samba/gp_sec_ext.py b/python/samba/gp_sec_ext.py index 136ba220de7..a9f5bbe5a6c 100644 --- a/python/samba/gp_sec_ext.py +++ b/python/samba/gp_sec_ext.py @@ -102,7 +102,8 @@ class gp_krb_ext(gp_inf_ext): inf_conf = self.parse(path) if not inf_conf: return output - for section in inf_conf.sections(): + if str(self) in inf_conf.sections(): + section = str(self) output[section] = {k: v for k, v in inf_conf.items(section) \ if gp_krb_ext.apply_map.get(k)} return output @@ -210,7 +211,8 @@ class gp_access_ext(gp_inf_ext): inf_conf = self.parse(path) if not inf_conf: return output - for section in inf_conf.sections(): + if str(self) in inf_conf.sections(): + section = str(self) output[section] = {k: v for k, v in inf_conf.items(section) \ if gp_access_ext.apply_map.get(k)} return output diff --git a/selftest/knownfail.d/gpo b/selftest/knownfail.d/gpo deleted file mode 100644 index 87a8c3c8d0e..00000000000 --- a/selftest/knownfail.d/gpo +++ /dev/null @@ -1 +0,0 @@ -^samba.tests.gpo.samba.tests.gpo.GPOTests.test_rsop -- 2.47.3