Bug 480326 - Spacewalk Proxy packages start services
Spacewalk Proxy packages start services
Product: Spacewalk
Classification: Community
Component: Proxy Server (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Miroslav Suchý
Red Hat Satellite QA List
Depends On:
Blocks: space05
  Show dependency treegraph
Reported: 2009-01-16 09:24 EST by Jan Pazdziora
Modified: 2009-09-17 03:09 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-09-17 03:09:12 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 Jan Pazdziora 2009-01-16 09:24:13 EST
Description of problem:

Spacewalk Proxy packages start services in their %post scripts.

This is against Fedora Packaging guidelines, as stated at

  Why don't we....
         *  start the service after installation? 
         Installations can be in changeroots, in an installer
         context, or in other situations where you don't want
         the services started. 

It also means that there is SELinux AVC denial

avc:  denied  { setattr } for  pid=2880 comm="httpd" name="rhn_proxy_broker.log" dev=dm-0 ino=64845 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:httpd_log_t:s0 tclass=file

reported during configure-proxy.sh, upon package installation.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. rpm -q --scripts spacewalk-proxy-broker | grep /sbin/service
2. rpm -q --scripts spacewalk-proxy-tools | grep /sbin/service
3. rpm -q --scripts spacewalk-proxy-redirect | grep /sbin/service
Actual results:

# rpm -q --scripts spacewalk-proxy-broker | grep /sbin/service
/sbin/service httpd graceful > /dev/null 2>&1
# rpm -q --scripts spacewalk-proxy-tools | grep /sbin/service
    /sbin/service squid stop
    /sbin/service squid start
    /sbin/service httpd stop
    /sbin/service httpd start
    /sbin/service httpd graceful
# rpm -q --scripts spacewalk-proxy-redirect | grep /sbin/service
/sbin/service httpd graceful > /dev/null 2>&1

Expected results:

No service start not graceful start should be done.

Additional info:
Comment 1 Miroslav Suchý 2009-01-21 05:53:12 EST
Fixed in f51c6110bc1c7296b3478c3110a30c9dca331e9b
Comment 2 Jesus M. Rodriguez 2009-04-14 10:12:16 EDT
Spacewalk 0.5 released.
Comment 3 Miroslav Suchý 2009-09-17 03:09:12 EDT
Spacewalk 0.5 has been released for long time ago.

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