Bug 872974 - logrotate/openvswitch denials
Summary: logrotate/openvswitch denials
Keywords:
Status: CLOSED DUPLICATE of bug 760054
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-04 17:50 UTC by Ian Pilcher
Modified: 2012-12-04 15:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 15:36:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ian Pilcher 2012-11-04 17:50:34 UTC
Description of problem:

/etc/cron.daily/logrotate:

Nov 04 03:16:04|00001|daemon|WARN|/var/run/openvswitch/ovs-vswitchd.pid: open: Permission denied
ovs-appctl: cannot read pidfile "/var/run/openvswitch/ovs-vswitchd.pid" (Permission denied)
Nov 04 03:16:04|00001|daemon|WARN|/var/run/openvswitch/ovsdb-server.pid: open: Permission denied
ovs-appctl: cannot read pidfile "/var/run/openvswitch/ovsdb-server.pid" (Permission denied)
error: error running shared postrotate script for '/var/log/openvswitch/*.log 

type=AVC msg=audit(1352020564.812:411): avc:  denied  { write } for  pid=17676 comm="ovs-appctl" name="ovs-vswitchd.pid" dev="tmpfs" ino=22053 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file
type=AVC msg=audit(1352020564.813:412): avc:  denied  { write } for  pid=17677 comm="ovs-appctl" name="ovsdb-server.pid" dev="tmpfs" ino=25938 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file

Version-Release number of selected component (if applicable):
logrotate-3.8.1-3.fc17.x86_64
openvswitch-1.4.2-3.fc17.x86_64
selinux-policy-targeted-3.10.0-156.fc17.noarch

How reproducible:
I just set up openvswitch yesterday, so I've only seen this once.  Probably 100%, however.

Steps to Reproduce:
1. Create openvswitch bridge
2. Wait
  
Actual results:
SELinux denials; see above.

Expected results:
No denials

Additional info:

Comment 6 Miroslav Grepl 2012-12-04 15:36:02 UTC

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


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