summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorMateusz Kowalski <mateusz.kowalski@cern.ch>2017-10-24 09:32:45 +0200
committerBen Nemec <bnemec@redhat.com>2018-07-18 19:40:15 +0000
commit909a1ea3a7aceb6e0637058b9c6a53d14043d6d1 (patch)
tree530fa95ea4874eb2a985b5cf85a14a49d54ce66e /releasenotes
parente673152a64c138cecc2d9294c966f0ee5162e94b (diff)
downloadoslo-policy-909a1ea3a7aceb6e0637058b9c6a53d14043d6d1.tar.gz
Avoid redundant policy syntax checks
Introduce a private variable inside Enforcer class to remember status of the last policy syntax checks in order to avoid redundant calls to the check_rules() method. Having this flag makes the whole rules mechanism faster, as under certain conditions check_rules() method was being executed multiple times even when not needed. Change-Id: Id3992fc0cb567451049a12ebdc6851e737573bb8 Closes-bug: #1723030 Co-Authored-By: Ben Nemec <bnemec@redhat.com>
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/policy-check-performance-fbad83c7a4afd7d7.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/policy-check-performance-fbad83c7a4afd7d7.yaml b/releasenotes/notes/policy-check-performance-fbad83c7a4afd7d7.yaml
new file mode 100644
index 0000000..fba946b
--- /dev/null
+++ b/releasenotes/notes/policy-check-performance-fbad83c7a4afd7d7.yaml
@@ -0,0 +1,7 @@
+---
+fixes:
+ - |
+ As reported in launchpad bug 1723030, under some circumstances policy
+ checks caused a significant performance degradation. This release includes
+ improved logic around rule validation to prevent that.
+