The %post script in the policy-sources package should pass -W options
to make in order to force rebuilding of the policies. Otherwise the
following interesting scenario becomes possible:
1) User installs policy-sources-xxx
2) Red Hat builds a newer policy-sources-yyy package
3) User makes some local mods and rebuilds local policy files.
4) User upgrades to Red Hat's newer policy-sources-yyy package.
Expected:
- policy files should be fully rebuilt
Actual:
- make assumes that the local policy files (timestamped (3) ) are
newer than the "just upgraded" policy source files (timestamped (2) )
and does not do a proper rebuild.
- if the user is "especially lucky", then it could happen that
policy.conf gets rebuilt, but file_contexts is not (or vice versa),
resulting in file_context being invalid w.r.t. the loaded policy.