Reload files in policy_dirs on primary file change
It was determined that rules from policy files located in the directory
specified in the policy_dirs option (/etc/<config_dir>/policy.d by
default) are not re-applied after the rules from the primary policy file
is re-applied due to a change.
This change introduces additional behavior to make sure the rules from
policy_dirs are reapplied if there is a change to the primary policy
file.
Change-Id: I8a6f8e971d881365c41ea409966723319d5b239a
Closes-Bug: #1880959
Related-Bug: #1880847
(cherry picked from commit 75677a31108243e0adddc89f1fbf669053f9573b)
(cherry picked from commit c8c138e69d9189345a7366a10b0779ef70b7250e)
Reviewed: https:/ /review. opendev. org/734154 /git.openstack. org/cgit/ openstack/ oslo.policy/ commit/ ?id=5904564bf13 bbac7d66e00ec63 12487c507f09c4
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 5904564bf13bbac 7d66e00ec631248 7c507f09c4
Author: Dmitrii Shcherbakov <email address hidden>
Date: Wed May 27 17:06:25 2020 +0300
Reload files in policy_dirs on primary file change
It was determined that rules from policy files located in the directory config_ dir>/policy. d by
specified in the policy_dirs option (/etc/<
default) are not re-applied after the rules from the primary policy file
is re-applied due to a change.
This change introduces additional behavior to make sure the rules from
policy_dirs are reapplied if there is a change to the primary policy
file.
Change-Id: I8a6f8e971d8813 65c41ea40996672 3319d5b239a 0adddc89f1fbf66 9053f9573b) 45a7366a10b0779 ef70b7250e)
Closes-Bug: #1880959
Related-Bug: #1880847
(cherry picked from commit 75677a31108243e
(cherry picked from commit c8c138e69d91893