Bug 180270 - rhn-applet: rpm verify fails due to config files in .spec not marked with %verify
rhn-applet: rpm verify fails due to config files in .spec not marked with %v...
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhn-applet (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Robin Norwood
Beth Nackashi
Depends On:
Blocks: 81409 179644 181409
  Show dependency treegraph
Reported: 2006-02-06 15:57 EST by Beth Nackashi
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2006-0472
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-10 17:34:44 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 Beth Nackashi 2006-02-06 15:57:18 EST
+++ This bug was initially created as a clone of Bug #180268 +++

Description of problem:
The TPS rpm --verify tests fail because the /etc/sysconfig/rhn/rhn-applet config
file will always be different from default.  Why?  Because the uuid field gets
populated during the installation process.  The spec file needs to be flagged
with approriate %verify bits so it passes this test.

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Fanny Augustin 2006-04-10 20:16:45 EDT
Blocking rhnupr4u4 and rhnupr3u8 to track the progress of the release
Comment 2 Robin Norwood 2006-05-03 17:02:45 EDT
Should be fixed in CVS.

See also: bug #180268
Comment 3 Robin Norwood 2006-05-03 17:13:21 EDT
*** Bug 185697 has been marked as a duplicate of this bug. ***
Comment 6 Beth Nackashi 2006-06-02 16:00:31 EDT
Package tested:

Architectures tested:
i386, ia64, x86_64, s390, s390x, ppc

All had a timestamp change on the config file.  Should timestamp be added to the
list of excludes as well?

[root@test01-ia64 tmp]# rpm -V rhn-applet
........C c /etc/sysconfig/rhn/rhn-applet

Comment 7 Beth Nackashi 2006-06-02 16:07:56 EDT
Hmm.  After further research, I see that this is not timestamp related at all. 
This is some sort of "context" flag.  It means that the context stored in the
file's extended attribute on disk is inconsistent with the file_contexts
configuration.  To fix, run /sbin/restorecon on the file(s) in question.

So, should "context" be added to the list of excludes?  Is that even allowed?
Comment 8 Robin Norwood 2006-06-27 17:58:16 EDT
ok - this has been fixed by adding the following to the %post section:

chcon system_u:object_r:etc_t /etc/sysconfig/rhn/rhn-applet
Comment 9 Beth Nackashi 2006-06-27 18:28:53 EDT
verified on s390, s390x, ppc, ia64, i386, and x86_64 with package

rpm -V now gives empty response

TPS tests *should* pass.  Let's hope so.
Comment 11 Red Hat Bugzilla 2006-08-10 17:34:45 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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