Bug 550880 - SELinux is preventing /usr/bin/mono "read write" access on sdb2.
Summary: SELinux is preventing /usr/bin/mono "read write" access on sdb2.
Keywords:
Status: CLOSED DUPLICATE of bug 533399
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c1d88e9f0c6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-27 23:05 UTC by Steven Côté
Modified: 2009-12-29 23:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-29 23:52:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steven Côté 2009-12-27 23:05:01 UTC
Summary:

SELinux is preventing /usr/bin/mono "read write" access on sdb2.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mono. It is not expected that this access is
required by mono 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                system_u:system_r:podsleuth_t:s0
Target Context                system_u:object_r:fixed_disk_device_t:s0
Target Objects                sdb2 [ blk_file ]
Source                        mono
Source Path                   /usr/bin/mono
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mono-core-2.4.2.3-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-59.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.9-174.fc12.i686 #1 SMP Mon Dec
                              21 06:24:20 UTC 2009 i686 athlon
Alert Count                   2
First Seen                    Sun 27 Dec 2009 23:01:43 GMT
Last Seen                     Sun 27 Dec 2009 23:01:43 GMT
Local ID                      e264f232-fbdd-43c8-b6e7-02dd5d167858
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1261954903.900:23): avc:  denied  { read write } for  pid=2390 comm="mono" name="sdb2" dev=tmpfs ino=219949 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=(removed) type=AVC msg=audit(1261954903.900:23): avc:  denied  { open } for  pid=2390 comm="mono" name="sdb2" dev=tmpfs ino=219949 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1261954903.900:23): arch=40000003 syscall=5 per=400000 success=yes exit=5 a0=8a2a0d0 a1=8002 a2=0 a3=0 items=0 ppid=2382 pid=2390 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="mono" exe="/usr/bin/mono" subj=system_u:system_r:podsleuth_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-59.fc12,catchall,mono,podsleuth_t,fixed_disk_device_t,blk_file,read,write
audit2allow suggests:

#============= podsleuth_t ==============
allow podsleuth_t fixed_disk_device_t:blk_file { read write open };

Comment 1 Steven Côté 2009-12-27 23:07:59 UTC
The above message as generated when plugging my ipod into the usb port. There were two further errors generated at the same time:

--

Summary:

SELinux is preventing /usr/bin/mono "getattr" access on /dev/sdb2.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mono. It is not expected that this access is
required by mono 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                system_u:system_r:podsleuth_t:s0
Target Context                system_u:object_r:fixed_disk_device_t:s0
Target Objects                /dev/sdb2 [ blk_file ]
Source                        mono
Source Path                   /usr/bin/mono
Port                          <Unknown>
Host                          puck
Source RPM Packages           mono-core-2.4.2.3-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-59.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     puck
Platform                      Linux puck 2.6.31.9-174.fc12.i686 #1 SMP Mon Dec
                              21 06:24:20 UTC 2009 i686 athlon
Alert Count                   1
First Seen                    Sun 27 Dec 2009 23:01:43 GMT
Last Seen                     Sun 27 Dec 2009 23:01:43 GMT
Local ID                      578c7ac1-c45d-4d79-833d-77c01636f365
Line Numbers                  

Raw Audit Messages            

node=puck type=AVC msg=audit(1261954903.931:24): avc:  denied  { getattr } for  pid=2390 comm="mono" path="/dev/sdb2" dev=tmpfs ino=219949 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=puck type=SYSCALL msg=audit(1261954903.931:24): arch=40000003 syscall=197 per=400000 success=yes exit=0 a0=5 a1=bf919790 a2=35aff4 a3=89ea4d8 items=0 ppid=2382 pid=2390 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="mono" exe="/usr/bin/mono" subj=system_u:system_r:podsleuth_t:s0 key=(null)


--


Summary:

SELinux is preventing /usr/bin/mono "ioctl" access on /dev/sdb2.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mono. It is not expected that this access is
required by mono 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                system_u:system_r:podsleuth_t:s0
Target Context                system_u:object_r:fixed_disk_device_t:s0
Target Objects                /dev/sdb2 [ blk_file ]
Source                        mono
Source Path                   /usr/bin/mono
Port                          <Unknown>
Host                          puck
Source RPM Packages           mono-core-2.4.2.3-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-59.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     puck
Platform                      Linux puck 2.6.31.9-174.fc12.i686 #1 SMP Mon Dec
                              21 06:24:20 UTC 2009 i686 athlon
Alert Count                   1
First Seen                    Sun 27 Dec 2009 23:01:43 GMT
Last Seen                     Sun 27 Dec 2009 23:01:43 GMT
Local ID                      bec81bfb-3b10-475e-b82e-24f5e91fdfe9
Line Numbers                  

Raw Audit Messages            

node=puck type=AVC msg=audit(1261954903.932:25): avc:  denied  { ioctl } for  pid=2390 comm="mono" path="/dev/sdb2" dev=tmpfs ino=219949 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=puck type=SYSCALL msg=audit(1261954903.932:25): arch=40000003 syscall=54 per=400000 success=yes exit=0 a0=5 a1=2285 a2=bf919720 a3=89ea4d8 items=0 ppid=2382 pid=2390 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="mono" exe="/usr/bin/mono" subj=system_u:system_r:podsleuth_t:s0 key=(null)

Comment 2 Daniel Walsh 2009-12-29 23:52:11 UTC

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


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