Bug 558080 - SELinux is preventing /usr/sbin/tgtd "read write" access on vg_system00-iSCSI_mail_lun_0.
Summary: SELinux is preventing /usr/sbin/tgtd "read write" access on vg_system00-iSCSI...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2f6cbfadac7...
: 552940 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-23 15:06 UTC by horner
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:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description horner 2010-01-23 15:06:40 UTC
Summary:

SELinux is preventing /usr/sbin/tgtd "read write" access on
vg_system00-iSCSI_mail_lun_0.

Detailed Description:

[tgtd has a permissive type (tgtd_t). This access was not denied.]

SELinux denied access requested by tgtd. It is not expected that this access is
required by tgtd 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:tgtd_t:s0
Target Context                system_u:object_r:fixed_disk_device_t:s0
Target Objects                vg_system00-iSCSI_mail_lun_0 [ blk_file ]
Source                        tgtd
Source Path                   /usr/sbin/tgtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           scsi-target-utils-0.9.5-3.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.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Sat 23 Jan 2010 03:12:37 PM CET
Last Seen                     Sat 23 Jan 2010 03:12:37 PM CET
Local ID                      d2657f94-3fc1-4fd6-8fb0-325d027657aa
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264255957.589:17): avc:  denied  { read write } for  pid=2114 comm="tgtd" name="vg_system00-iSCSI_mail_lun_0" dev=tmpfs ino=4266 scontext=system_u:system_r:tgtd_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=(removed) type=AVC msg=audit(1264255957.589:17): avc:  denied  { open } for  pid=2114 comm="tgtd" name="vg_system00-iSCSI_mail_lun_0" dev=tmpfs ino=4266 scontext=system_u:system_r:tgtd_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1264255957.589:17): arch=c000003e syscall=2 success=yes exit=17 a0=657c50 a1=2 a2=7fff72f7ac10 a3=5f6e756c5f6c6961 items=0 ppid=1 pid=2114 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="tgtd" exe="/usr/sbin/tgtd" subj=system_u:system_r:tgtd_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-69.fc12,catchall,tgtd,tgtd_t,fixed_disk_device_t,blk_file,read,write
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-01-25 17:17:38 UTC
Giving tgtd this access basically gives it full run of the system.

But I think it needs it.

Miroslav add

storage_manage_fixed_disk(tgtd_t)

Comment 2 Miroslav Grepl 2010-01-26 13:34:29 UTC
*** Bug 552940 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-01-26 13:35:46 UTC
Fixed in selinux-policy-3.6.32-78.fc12

Comment 4 Fedora Update System 2010-01-28 09:23:32 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 5 Fedora Update System 2010-01-29 03:28:47 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 6 Fedora Update System 2010-02-02 01:20:52 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.