RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 977477 - AVC denials when using openvswitch logrotate
Summary: AVC denials when using openvswitch logrotate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.5
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 977415
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 16:12 UTC by Ludek Smid
Modified: 2016-04-26 16:19 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, the logrotate daemon rotated logs and tried to update the process ID (PID) in the "/var/run/openvswitch/ovs-vswitchd.pid" configuration, which caused AVC denials. Usually, the logrotate script sends a SIGHUP to a daemon to order it to reopen log files after they were rotated. This update revises the openvswitch policy, and AVC denials no longer occur in the described scenario.
Clone Of:
Environment:
Last Closed: 2013-06-27 18:06:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1000 0 normal SHIPPED_LIVE selinux-policy bug fix update 2013-06-27 22:05:25 UTC

Description Ludek Smid 2013-06-24 16:12:22 UTC
This bug has been copied from bug #977415 and has been proposed
to be backported to 6.4 z-stream (EUS).

Comment 8 Miroslav Grepl 2013-06-25 11:05:39 UTC
There are builds for testing

https://brewweb.devel.redhat.com/taskinfo?taskID=5938843

on RHEL6.4.z

Comment 9 Milos Malik 2013-06-26 10:03:06 UTC
The reproducer:
# service ntpd stop
* modify following lines in /etc/anacrontab
  RANDOM_DELAY=1
  1       1       cron.daily              nice run-parts /etc/cron.daily
# service auditd stop
# rm -f /var/log/audit/audit.log
# service auditd start
# rm -f /var/log/openvswitch/*
# service openvswitch restart
# rm -f /var/spool/anacron/cron.daily
# killall anacron
* modify following lines in /var/lib/logrotate.status
  "/var/log/openvswitch/ovsdb-server.log" 2013-6-06
  "/var/log/openvswitch/ovs-vswitchd.log" 2013-6-06
# date 06260300
# tail -f /var/log/cron
(wait 2 minutes)
# ausearch -m avc -m selinux_err -i

Comment 14 errata-xmlrpc 2013-06-27 18:06:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1000.html


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