Bug 563899 - SELinux is preventing /usr/sbin/arpwatch "read write" access on 001.
Summary: SELinux is preventing /usr/sbin/arpwatch "read write" access on 001.
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:02d65482eb0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-11 14:45 UTC by John DeDourek
Modified: 2010-02-20 00:23 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Clone Of:
Environment:
Last Closed: 2010-02-20 00:23:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John DeDourek 2010-02-11 14:45:45 UTC
Summary:

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

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://docs.fedoraproject.org/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                001 [ 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-78.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                   5
First Seen                    Thu 11 Feb 2010 10:43:09 AM AST
Last Seen                     Thu 11 Feb 2010 10:43:09 AM AST
Local ID                      499427cd-3524-446b-a7be-e9412b1542d4
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265899389.850:26012): avc:  denied  { read write } for  pid=6713 comm="arpwatch" name="001" dev=tmpfs ino=2878 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(1265899389.850:26012): arch=40000003 syscall=5 success=no exit=-13 a0=bf9d0294 a1=8002 a2=0 a3=bf9d0294 items=0 ppid=6712 pid=6713 auid=1005 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 ses=308 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-78.fc12,catchall,arpwatch,arpwatch_t,usb_device_t,chr_file,read,write
audit2allow suggests:

#============= arpwatch_t ==============
allow arpwatch_t usb_device_t:chr_file { read write };

Comment 1 John DeDourek 2010-02-11 14:47:10 UTC
Repeat by:

Login to a user account

su -
service arpwatch start

Comment 2 Daniel Walsh 2010-02-11 18:27:49 UTC
John di you know what device arpwatch is looking at?  What usb device is 001?
Is this a network device?

Comment 3 John DeDourek 2010-02-11 18:33:07 UTC
Machine has 5 USB buses, 001 - 005.  Device 001 on every bus is a root hub.

Comment 4 Daniel Walsh 2010-02-11 19:07:03 UTC
Miroslav add

dev_rw_generic_usb_dev(arpwatch_t)

Comment 5 Miroslav Grepl 2010-02-11 20:14:28 UTC
Fixed in selinux-policy-3.6.32-88.fc12

Comment 6 Fedora Update System 2010-02-11 22:02:42 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 7 Fedora Update System 2010-02-13 00:42:00 UTC
selinux-policy-3.6.32-89.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-1836

Comment 8 Fedora Update System 2010-02-20 00:21:02 UTC
selinux-policy-3.6.32-89.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.