Bug 440594 - rpm -V error: SELinux context differs for syslog.conf
Summary: rpm -V error: SELinux context differs for syslog.conf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: sysklogd
Version: 4.7
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Peter Vrabec
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-04 09:34 UTC by Chris Ward
Modified: 2010-03-09 14:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-09 14:54:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Ward 2008-04-04 09:34:24 UTC
Description of problem:
SELinux context differs when I run rpm -V for the current RHEL4 build of
sysklogd-1.4.1-27.el4 and the previous version sysklogd-1.4.1-26_EL, even if
freshly installed. 

sysklogd-1.4.1-44.el5.i386, the current release for RHEL5 doesn't have the same
problem. 

%> rpm -q sysklogd
sysklogd-1.4.1-27.el4.x86_64

%> rpm -V sysklogd
S.5....T. c /etc/sysconfig/syslog
S.5....TC c /etc/syslog.conf
        ^
# verify error 'C' = SELinux Context Differs


I have a feeling this isn't a major problem, considering the older version had
the same problem...but nonetheless, less verify errors, the better. 

I'm honestly not sure what's causing the verify error to occur, perhaps it's a
bug in rpm -V itself, because when I check the context of syslog.conf, it
appears to be correct.


%> rpm -V sysklogd
S.5....TC c /etc/syslog.conf
        ^

%> ls -Z /etc/syslog.conf 
-rw-r--r--  root     root     user_u:object_r:etc_t            /etc/syslog.conf

%> restorecon /etc/syslog.conf 

%> ls -Z /etc/syslog.conf 
-rw-r--r--  root     root     user_u:object_r:etc_t            /etc/syslog.conf

%> rpm -V sysklogd
S.5....TC c /etc/syslog.conf
        ^

%> rpm -q sysklogd

sysklogd-1.4.1-27.el4.x86_64


Version-Release number of selected component (if applicable):
sysklogd-1.4.1-27.el4

How reproducible:
always

Steps to Reproduce:
1.see above
2.
3.
  
Expected results:
no SELinux context verify error

Comment 1 Daniel Walsh 2008-04-08 13:16:37 UTC
It is checking the SELinux user of the file user_u versus system_u.

If you run restorecon -F /etc/syslog.conf 
it should fix the file so RPM will not complain.

This was fixed to not check the user componant in later versions of rpm.

Comment 2 Peter Vrabec 2008-04-10 09:54:28 UTC
so, is this rpm problem? Should I reassign the issue?

Comment 3 Chris Ward 2008-04-10 11:29:57 UTC
Exactly what I'm thinking, should this bug be reassigned to rpm then? Should rpm
be checking the user of the file user_u versus system_u?

Comment 4 Daniel Walsh 2008-04-10 15:23:05 UTC
I think the problem is the checking at all.  rpm -V checking of SELinux context
was removed from newer versions or rpm.  It is arguable either way, that this is
correct behavior, since it does not match the default context.  


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