Policy directory files can only add new rules or
update existing rules in cache, but cannot return back
loaded rules in memory to their default value.
This incorrect behavior was fixed in the patch.
Member "_loaded_files" of class Enforcer should keep
list of loaded policy config files paths.
In fact if the same file is changed many times
then the same file path is added many times.
If a file is deleted it's path not deleted from "_loaded_files".
The member is very misleading and is not used in code.
So this member was deleted in the patch because of
above mentioned resons.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.policy/ +/808957 /opendev. org/openstack/ oslo.policy/ commit/ 949289e09409075 7576f9251019e10 d53af7a663
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 949289e09409075 7576f9251019e10 d53af7a663
Author: Mitya_Eremeev <email address hidden>
Date: Tue Sep 14 15:37:31 2021 +0300
Rules in policy directory files can be deleted.
Policy directory files can only add new rules or
update existing rules in cache, but cannot return back
loaded rules in memory to their default value.
This incorrect behavior was fixed in the patch.
Member "_loaded_files" of class Enforcer should keep
list of loaded policy config files paths.
In fact if the same file is changed many times
then the same file path is added many times.
If a file is deleted it's path not deleted from "_loaded_files".
The member is very misleading and is not used in code.
So this member was deleted in the patch because of
above mentioned resons.
Change-Id: I9ede38d8cf2ae9 68d3d8c0b1240bd 6a51e6aa931
Closes-Bug: 1943584