| Summary: | [RFE] Restart service after a security update | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | J.H.M. Dassen (Ray) <rdassen> |
| Component: | yum | Assignee: | James Antill <james.antill> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.6 | CC: | rbinkhor |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-14 15:55:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
J.H.M. Dassen (Ray)
2011-02-14 10:10:14 UTC
Please note that daemons should not be considered in isolation - the case of security vulnerabilities affecting the libraries used by particular daemons should be considered as well. <http://lists.debian.org/debian-security-announce/2003/msg00202.html> contains an illustration of how processes incorporating potentially vulnerable library code could be identified. Normally the pkgs condrestart themselves in their %post scriptlet. Why shouldn't this be the same here? However, if you want to add a forced restart yum-utils does have a plugin called post-transaction-actions which allows you to take specific per-package actions based on the pkg name and based on what action is occuring to the package (install, update, remove, any) > 3. Why does the customer need this? (List the business requirements here) > Customer's customer was affected by the exim vulnerability even though the > package was patched. Customer failed to restart the service. % rpm -q exim exim-4.63-5.el5_5.2 % rpm -q --scripts exim [...] postuninstall scriptlet (using /bin/sh): if [ "$1" -ge "1" ]; then /sbin/service exim condrestart > /dev/null 2>&1 mta=`readlink /etc/alternatives/mta` if [ "$mta" == "/usr/sbin/sendmail.exim" ]; then /usr/sbin/alternatives --set mta /usr/sbin/sendmail.exim fi fi ...so on updates exim is calling condrestart ... now it's possible that condrestart is failing, or something else weird is going on. But I'm pretty sure none of this is a yum bug/RFE. Also in RHEL-6 (or just newer versions of yum-utils) we have "needs-restarting" and the "ps" yum plugin, both of which help you map running services which have "deleted" components to names/packages/PIDs. |