Bug 120375 - policy-sources %post script should pass -W options to make.
policy-sources %post script should pass -W options to make.
Product: Fedora
Classification: Fedora
Component: policy (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Daniel Walsh
: SELinux
Depends On:
  Show dependency treegraph
Reported: 2004-04-08 01:12 EDT by Aleksey Nogin
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.10.1-5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-10 14:03:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Aleksey Nogin 2004-04-08 01:12:26 EDT
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.

- policy files should be fully rebuilt

- 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.
Comment 1 Daniel Walsh 2004-04-08 08:45:56 EDT
Good point.  Fixed in policy-1.10.1-5
Comment 2 Aleksey Nogin 2004-04-11 14:16:42 EDT
The current "-W /etc/security/selinux/src/policy/users" is probably
sufficient to make sure that policy.conf is rebuilt, but what about
Comment 3 Daniel Walsh 2004-04-12 07:51:10 EDT
file_contexts is rebuild when policy is rebuilt.


Note You need to log in before you can comment on or make changes to this bug.