Bug 639259 - Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*)
Summary: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy
Version: 5.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-01 09:29 UTC by Radek Bíba
Modified: 2012-10-15 14:16 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-2.4.6-287.el5
Doc Type: Bug Fix
Doc Text:
Due to an error in a SELinux policy, messages similar to the following could be written to the /var/log/messages log file: restorecon: /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*). These updated packages correct this error, and the above message no longer appears in the log.
Clone Of:
Environment:
Last Closed: 2011-01-13 21:50:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0026 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2011-01-12 16:11:15 UTC

Description Radek Bíba 2010-10-01 09:29:58 UTC
Description of problem:
The following messages are in my log file on my machine running RHEL 5.6 nightly:

yum: Updated: selinux-policy-2.4.6-285.el5.noarch
yum: Updated: gsl-devel-1.13-3.el5.i386
dbus: avc:  received policyload notice (seqno=4)
setfiles: /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*).
restorecon: /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*).
restorecon: /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*).
yum: Updated: selinux-policy-targeted-2.4.6-285.el5.noarch
...

and then the message about multiple same specification occurs every now and then, mostly from ssh, kinit, and rpm.

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-285.el5

How reproducible:
I'm not really sure, but it appears that this message is printed every time a command that has something to do with selinux is executed. As a reproducer, I think just `matchpathcon /etc/yum.repos.d` will do.

 
Actual results:
/var/log/messages is spammed. I don't know if it has any other consequences.

Expected results:
Silence

Additional info:
# grep ^/etc/NetworkManager/dispatcher /etc/selinux/targeted/contexts/files/file_contexts
/etc/NetworkManager/dispatcher.d(/.*)?  system_u:object_r:bin_t:s0
/etc/NetworkManager/dispatcher\.d(/.*)  system_u:object_r:NetworkManager_initrc_exec_t:s0
/etc/NetworkManager/dispatcher\.d(/.*)  system_u:object_r:NetworkManager_initrc_exec_t:s0

Comment 5 Miroslav Grepl 2010-10-14 08:41:58 UTC
Fixed in selinux-policy-2.4.6-287.el5.noarch

Comment 9 Jaromir Hradilek 2011-01-05 16:21:49 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Due to an error in a SELinux policy, messages similar to the following could be written to the /var/log/messages log file:

  restorecon: /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /etc/NetworkManager/dispatcher\.d(/.*).

These updated packages correct this error, and the above message no longer appears in the log.

Comment 11 errata-xmlrpc 2011-01-13 21:50:36 UTC
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 therefore 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.

http://rhn.redhat.com/errata/RHBA-2011-0026.html


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