Bug 628642 - manual upgrading/downgrading of proxy packages removes selinux rules
Summary: manual upgrading/downgrading of proxy packages removes selinux rules
Keywords:
Status: CLOSED DUPLICATE of bug 627168
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 530
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat531-triage
TreeView+ depends on / blocked
 
Reported: 2010-08-30 15:44 UTC by Martin Minar
Modified: 2016-07-04 00:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-02 07:38:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Minar 2010-08-30 15:44:50 UTC
Description of problem:
When I install proxy using either configure_proxy or web proxy works fine. Then when I upgrade/downgrade using classic rpm -Uvh to version 0.5.7.-12/0.5.7-13 record in /var/cache/rhn/proxy-auth is removed and therefor communication from client thru this proxy is not possible.
SE Linux in Enforcing mode


Version-Release number of selected component (if applicable):
RHN-Proxy 5.3
RHEL5 U5

How reproducible:
always

Steps to Reproduce:
1. Activate proxy thru web or configure-proxy
2. setenforce 1
3. rpm -Uvh <spacewalk-proxy rpms>
4. Try to register client thru proxy/do rhn_check
  
Actual results:
On client:
Error code: -1000
Error Message:
    RHN Proxy error (auth caching issue). Please contact your system administra.
Error Class Code: 1000
Error Class Info: RHN Proxy error.
...

On Proxy:
Exception type exceptions.OSError
Exception while handling function ProxyAuth.set_cached_token
Extra information about this error:
Caching of authentication token for proxy id <xyz> failed!
...
Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 145, in set_cached_token
    shelf[self.__cache_proxy_key()] = token
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 391, in __setitem__
    return rhnCache.set(rkey, val)
  File "/usr/share/rhn/common/rhnCache.py", line 84, in set
    cache.set(name, value, modified, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 363, in set
    self.cache.set(name, pickled, modified, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 253, in set
    fd = self.set_file(name, modified, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 286, in set_file
    fd = WriteLockedFile(name, modified, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 181, in __init__
    self.fd = self.get_fd(name, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 224, in get_fd
    fd = _safe_create(self.fname, user, group, mode)
  File "/usr/share/rhn/common/rhnCache.py", line 133, in _safe_create
    makedirs(dirname, mode, user, group)
  File "/usr/share/rhn/common/rhnLib.py", line 609, in makedirs
    os.mkdir(dirname, mode)
OSError: [Errno 13] Permission denied: '/var/cache/rhn/proxy-auth'
...


Expected results:
Registration/rhn_check

Additional info:
There is bug 627168 that also reports "rpm -V spacewalk-proxy-common.noarch" is returning error - missing proxy-auth file.

Comment 1 Miroslav Suchý 2010-09-02 07:38:08 UTC

*** This bug has been marked as a duplicate of bug 627168 ***


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