Bug 1115649
Summary: | installation does not restart polkitd | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Martin Žember <mzember> | |
Component: | polkit | Assignee: | Miloslav Trmač <mitr> | |
Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6.7 | CC: | ebenes, ksrot, mitr, salmy | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | polkit-0.96-11.el6 | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Consequence: The polkitd daemon was not restarted after upgrade of the polkit package, nor stopped after package uninstallation.
Fix: Appropriate scriptlets were added to the polkit package.
Result: The polkitd daemon is now stopped after package uninstallation, and will be restarted after future upgrades from this version of the polkit package.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1198364 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-17 13:39:12 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Martin Žember
2014-07-02 20:08:39 UTC
Workaround: killall polkitd When a policy/pkla file is changed, the change is detected automatically, but not immediately. Hi Miloslav, I am afraid that the if-then solution has one unpleasant side-effect, this time in relation with the preuninstall scriptlet. if [ -n "$pid" ]; then kill "$pid" fi There is very small chance that the kill command would fail, e.g. because the polkitd process has been terminated right between the dbus-send query (and therefore $pid is set) and the kill command. If the kill command fails in the preun section then the uninstallation is aborted. Do you find it to be an expected/required behavior? [ -n "$pid" ] && kill "$pid" || : has the advantage that it always pass. (In reply to Karel Srot from comment #14) > I am afraid that the if-then solution has one unpleasant side-effect, this > time in relation with the preuninstall scriptlet. > > if [ -n "$pid" ]; then > kill "$pid" > fi > > There is very small chance that the kill command would fail, e.g. because > the polkitd process has been terminated right between the dbus-send query > (and therefore $pid is set) and the kill command. If the kill command fails > in the preun section then the uninstallation is aborted. Do you find it to > be an expected/required behavior? No :) > [ -n "$pid" ] && kill "$pid" || : > > has the advantage that it always pass. OK, -11 does > if [ -n "$pid" ]; then > kill "$pid" 2>/dev/null || : > fi Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0692.html |