Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 562303

Summary: (beiscsi_module_init():3941):In beiscsi_module_init, tt=ffffffff88591100
Product: Red Hat Enterprise Linux 5 Reporter: Martin Jenner <mjenner>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 5.5CC: mmalik, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-2.4.6-272.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 07:49:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Jenner 2010-02-05 21:05:17 UTC
Description of problem: 

Seeing avc errors on multiple systems booting 2.6.18-186.el5 kernel

<snip>
iscsi: registered transport (bnx2i)
iscsi: registered transport (tcp)
iscsi: registered transport (iser)
iscsi: registered transport (be2iscsi)
(beiscsi_module_init():3941):In beiscsi_module_init, tt=ffffffff88591100 
type=1400 audit(1265326006.153:4): avc:  denied  { write } for  pid=1911 comm="brcm_iscsiuio" name="log" dev=dm-0 ino=2785307 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir
ADDRCONF(NETDEV_UP): eth1: link is not ready
</snip>


Version-Release number of selected component (if applicable):

- RHEL5.5-Server-20100201.0 - beta candidate

# rpm -qa | grep -i selinux-
libselinux-1.33.4-5.5.el5
libselinux-devel-1.33.4-5.5.el5
libselinux-devel-1.33.4-5.5.el5
libselinux-1.33.4-5.5.el5
selinux-policy-targeted-2.4.6-271.el5
libselinux-python-1.33.4-5.5.el5
libselinux-utils-1.33.4-5.5.el5
selinux-policy-2.4.6-271.el5


How reproducible:

very, this has been seen on multiple test multiple systems running both kernel and kernel-xen


Steps to Reproduce:
1. install RHEL5.5-Server-20100201.0 which has kernel 2.6.18-186.el5
2. review dmesg or /var/log/messages


I had not seen these errors in tree RHEL5.5-Server-20100117.0 kernel 2.6.18-185.el5

Comment 1 Martin Jenner 2010-02-05 21:07:31 UTC
logs from an RHTS job

/sbin/ausearch -sv no -m AVC -m USER_AVC -m SELINUX_ERR -ts 2/4/2010 18:46:46
<no matches>
No AVC messages found with /sbin/ausearch -sv no -m AVC -m USER_AVC -m SELINUX_ERR -ts 2/4/2010 18:46:46
/bin/grep avc: /tmp/dmesg.log | /bin/grep --invert-match granted
Following messages were found in dmesg:
type=1400 audit(1265345126.188:4): avc:  denied  { write } for  pid=1995 comm="brcm_iscsiuio" name="log" dev=dm-0 ino=4259867 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir
Warning: Unable to parse timestamp

 http://rhts.redhat.com/cgi-bin/rhts/test_log.cgi?id=12021990

Comment 3 Daniel Walsh 2010-02-05 21:27:54 UTC
* Wed Feb 3 2010 Miroslav Grepl <mgrepl> 2.4.6-272
- Allow iscsid to create log file
Resolves: #548599

Fixed in selinux-policy-2.4.6-272.el5.src.rpm

Comment 7 errata-xmlrpc 2010-03-30 07:49:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0182.html