Bug 791178

Summary: SELinux is preventing /sbin/iscsiuio from 'open' accesses on the file /var/log/iscsiuio.log.
Product: [Fedora] Fedora Reporter: Eris <24hourstechnics>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:097a6f7acbea3cac8e80a60dc0636630840e69be9ba2cdfdeab60d0564c1c229
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-16 12:24:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eris 2012-02-16 12:15:30 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.6-3.fc16.x86_64
reason:         SELinux is preventing /sbin/iscsiuio from 'open' accesses on the file /var/log/iscsiuio.log.
time:           Πεμ 16 Φεβ 2012 02:15:09 μμ EET

description:
:SELinux is preventing /sbin/iscsiuio from 'open' accesses on the file /var/log/iscsiuio.log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that iscsiuio should be allowed open access on the iscsiuio.log file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep iscsiuio /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:iscsid_t:s0
:Target Context                system_u:object_r:var_log_t:s0
:Target Objects                /var/log/iscsiuio.log [ file ]
:Source                        iscsiuio
:Source Path                   /sbin/iscsiuio
:Port                          <Άγνωστο>
:Host                          (removed)
:Source RPM Packages           iscsi-initiator-utils-6.2.0.872-17.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.6-3.fc16.x86_64 #1 SMP Mon Feb 13
:                              20:35:42 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    Πεμ 16 Φεβ 2012 12:40:39 μμ EET
:Last Seen                     Πεμ 16 Φεβ 2012 04:08:35 μμ EET
:Local ID                      fea91447-0c64-4038-9537-c22d54dac01c
:
:Raw Audit Messages
:type=AVC msg=audit(1329401315.153:30): avc:  denied  { open } for  pid=1018 comm="iscsiuio" name="iscsiuio.log" dev=sdb3 ino=6507 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1329401315.153:30): arch=x86_64 syscall=open success=no exit=EACCES a0=4203b0 a1=441 a2=1b6 a3=238 items=0 ppid=1017 pid=1018 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=iscsiuio exe=/sbin/iscsiuio subj=system_u:system_r:iscsid_t:s0 key=(null)
:
:Hash: iscsiuio,iscsid_t,var_log_t,file,open
:
:audit2allow
:
:#============= iscsid_t ==============
:allow iscsid_t var_log_t:file open;
:
:audit2allow -R
:
:#============= iscsid_t ==============
:allow iscsid_t var_log_t:file open;
:

Comment 1 Miroslav Grepl 2012-02-16 12:24:49 UTC
Have you ever started iscsid by hand? It looks so.

Could you execute

$ restorecon -R -v /var/log/iscsi*

Please reopen, if this happens again.