Bug 220195

Summary: selinux prevents mkinitrd from running properly
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: high    
Version: 6CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4.6-13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-24 18:09:26 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 Orion Poplawski 2006-12-19 16:40:48 UTC
Description of problem:

Ran "ssh hawk yum -y upgrade" to upgrade hawk.  This installed a new kernel. 
The initrd for this kernel was broken (didn't load scsi driver it needed to boot).

avcs: (duplicates eliminated)

Dec 19 09:12:44 hawk kernel: audit(1166544764.454:5656): avc:  denied  { read
write } for  pid=28625 comm="depmod" name="[6103353]" dev=sockfs ino=6103353
scontext=root:system_r:depmod_t:s0-s0:c0.c1023
tcontext=root:system_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket
Dec 19 09:12:45 hawk kernel: audit(1166544765.374:5658): avc:  denied  { read
write } for  pid=28626 comm="mkinitrd" name="[6103353]" dev=sockfs ino=6103353
scontext=root:system_r:bootloader_t:s0-s0:c0.c1023
tcontext=root:system_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket
Dec 19 09:12:56 hawk kernel: audit(1166544776.327:5660): avc:  denied  {
setfscreate } for  pid=29270 comm="cp"
scontext=root:system_r:bootloader_t:s0-s0:c0.c1023
tcontext=root:system_r:bootloader_t:s0-s0:c0.c1023 tclass=process

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-7.fc6


Ran mkinitrd by hand in ssh login session and that worked.

Comment 1 Daniel Walsh 2006-12-19 19:02:17 UTC
Fixed in selinux-policy-2.4.6-13

Comment 2 Orion Poplawski 2007-01-24 18:09:26 UTC
Confirmed fixed.