Bug 559219 - SELinux is preventing /usr/sbin/arpwatch "read" access on usbmon1.
Summary: SELinux is preventing /usr/sbin/arpwatch "read" access on usbmon1.
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:abfb1c2434b...
: 560657 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-27 13:39 UTC by John DeDourek
Modified: 2010-02-02 01:23 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-78.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 01:23:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
usbmon.patch (3.19 KB, application/octet-stream)
2010-01-27 16:32 UTC, Daniel Walsh
no flags Details

Description John DeDourek 2010-01-27 13:39:26 UTC
Summary:

SELinux is preventing /usr/sbin/arpwatch "read" access on usbmon1.

Detailed Description:

SELinux denied access requested by arpwatch. It is not expected that this access
is required by arpwatch 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:arpwatch_t:s0
Target Context                system_u:object_r:usb_device_t:s0
Target Objects                usbmon1 [ chr_file ]
Source                        arpwatch
Source Path                   /usr/sbin/arpwatch
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           arpwatch-2.1a15-12.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-69.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.i686
                              #1 SMP Mon Jan 18 20:22:46 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Wed 27 Jan 2010 09:34:24 AM AST
Last Seen                     Wed 27 Jan 2010 09:34:24 AM AST
Local ID                      f0cda9d6-1e42-40fe-b7c5-d6909c056090
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264599264.451:2831): avc:  denied  { read } for  pid=8701 comm="arpwatch" name="usbmon1" dev=tmpfs ino=2920 scontext=unconfined_u:system_r:arpwatch_t:s0 tcontext=system_u:object_r:usb_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1264599264.451:2831): arch=40000003 syscall=5 success=no exit=-13 a0=bfbb5b1c a1=8000 a2=0 a3=83a93c0 items=0 ppid=8700 pid=8701 auid=1005 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=451 comm="arpwatch" exe="/usr/sbin/arpwatch" subj=unconfined_u:system_r:arpwatch_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-69.fc12,catchall,arpwatch,arpwatch_t,usb_device_t,chr_file,read
audit2allow suggests:

#============= arpwatch_t ==============
allow arpwatch_t usb_device_t:chr_file read;

Comment 1 John DeDourek 2010-01-27 13:40:42 UTC
Opened a terminal window, did su - and then service arpwatch start

Comment 2 Daniel Walsh 2010-01-27 16:26:55 UTC
Miroslav, I changed the label of usbmon to usbmon_device_t in Rawhide.
We need to make a similar change in F12.

Comment 3 Daniel Walsh 2010-01-27 16:32:19 UTC
Created attachment 387125 [details]
usbmon.patch

Comment 4 Miroslav Grepl 2010-01-27 16:39:01 UTC
Fixed in selinux-policy-3.6.32-78.fc12

Comment 5 Fedora Update System 2010-01-28 09:24:16 UTC
selinux-policy-3.6.32-78.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-78.fc12

Comment 6 Fedora Update System 2010-01-29 03:29:29 UTC
selinux-policy-3.6.32-78.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/F12/FEDORA-2010-1207

Comment 7 Miroslav Grepl 2010-02-01 15:46:37 UTC
*** Bug 560657 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2010-02-02 01:21:36 UTC
selinux-policy-3.6.32-78.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.