Bug 581265 - SELinux is preventing /usr/bin/perl "getattr" access on /dev/mapper/control.
Summary: SELinux is preventing /usr/bin/perl "getattr" access on /dev/mapper/cont...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1f70c0bfe03...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-11 13:15 UTC by Gabriele Pohl
Modified: 2010-05-03 16:08 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.6.32-113.fc12
Clone Of:
Environment:
Last Closed: 2010-05-03 16:08:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gabriele Pohl 2010-04-11 13:15:30 UTC
Summary:

SELinux is preventing /usr/bin/perl "getattr" access on /dev/mapper/control.

Detailed Description:

SELinux denied access requested by diskstats. It is not expected that this
access is required by diskstats and this access may signal an intrusion attempt.
It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:munin_t:s0
Target Context                system_u:object_r:lvm_control_t:s0
Target Objects                /dev/mapper/control [ chr_file ]
Source                        diskstat_latenc
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.10.0-87.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-108.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.10-90.fc12.i686 #1 SMP Tue Mar
                              23 10:21:29 UTC 2010 i686 i686
Alert Count                   1555
First Seen                    Sat 10 Apr 2010 10:05:05 AM CEST
Last Seen                     Sun 11 Apr 2010 03:10:06 PM CEST
Local ID                      505a7f70-5df9-4660-a702-21f87ff1cf6f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1270991406.534:27436): avc:  denied  { getattr } for  pid=9327 comm="diskstats" path="/dev/mapper/control" dev=devtmpfs ino=5286 scontext=system_u:system_r:munin_t:s0 tcontext=system_u:object_r:lvm_control_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1270991406.534:27436): arch=40000003 syscall=196 success=no exit=-13 a0=bfd4fefc a1=bfd50f50 a2=37fff4 a3=bfd50efc items=0 ppid=9128 pid=9327 auid=4294967295 uid=491 gid=478 euid=491 suid=491 fsuid=491 egid=478 sgid=478 fsgid=478 tty=(none) ses=4294967295 comm="diskstats" exe="/usr/bin/perl" subj=system_u:system_r:munin_t:s0 key=(null)


The error is produced by munin-node plugin "diskstat_latency_",
which is delivered with the munin-node package:

rpm -qi munin-node
Name        : munin-node                   Relocations: (not relocatable)
Version     : 1.4.4                             Vendor: Fedora Project
Release     : 1.fc12                        Build Date: Tue 02 Mar 2010
03:04:33 AM CET
Install Date: Wed 07 Apr 2010 09:55:49 PM CEST      Build Host:
ppc02.phx2.fedoraproject.org
Group       : System Environment/Daemons    Source RPM:
munin-1.4.4-1.fc12.src.rpm
Size        : 1264298                          License: GPLv2 and Bitstream
Vera
Signature   : RSA/8, Tue 02 Mar 2010 03:52:57 AM CET, Key ID 9d1cc34857bbccba
Packager    : Fedora Project

Hash String generated from  catchall,diskstat_latenc,munin_t,lvm_control_t,chr_file,getattr
audit2allow suggests:

#============= munin_t ==============
allow munin_t lvm_control_t:chr_file getattr;

Comment 1 Carl G. 2010-04-12 13:47:11 UTC

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

Comment 2 Miroslav Grepl 2010-04-12 16:35:03 UTC
This is not the same bug as #581257. This bug is related with diskstat plugin, which runs under munin_disk_plugin_t domain in F13.

Dan, 
I guess we need add

dev_getattr_lvm_control(munin_disk_plugin_t)

Comment 3 Daniel Walsh 2010-04-12 17:33:23 UTC
Sounds good to me.

Comment 4 Miroslav Grepl 2010-04-13 12:40:59 UTC
Fixed in selinux-policy-3.6.32-111.fc12

Comment 5 Fedora Update System 2010-04-23 12:44:17 UTC
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 6 Fedora Update System 2010-04-27 02:22:54 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 7 Fedora Update System 2010-05-03 16:06:55 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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