Bug 485006 - Software raid doesn't work in MLS Enforcing (boot fails)
Summary: Software raid doesn't work in MLS Enforcing (boot fails)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 10
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-11 04:00 UTC by Joe Nall
Modified: 2010-01-08 11:15 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-11-18 10:19:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
selinux policy patch (did not work) (1.14 KB, patch)
2009-02-11 04:04 UTC, Joe Nall
no flags Details | Diff

Description Joe Nall 2009-02-11 04:00:57 UTC
Description of problem:
mdadm runs system_u:system_r:mdadm_t:s0-s15:c0.c1023 during boot and can't access block devices that are system_u:object_r:fixed_disk_device_t:s15:c0.c1023

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

mdadm-2.6.7.1-1.fc10.x86_64

How reproducible:

Every time.

Steps to Reproduce:
1. Build two disk md device
2. Boot in MLS Enforcing
  
Actual results:

grep mdadm /var/log/audit/audit.log  | grep denied
node=jcdx type=AVC msg=audit(1234319790.266:18): avc:  denied  { read } for  pid=1473 comm="mdadm" name="sdb2" dev=tmpfs ino=508 scontext=system_u:system_r:mdadm_t:s0-s15:c0.c1023 tcontext=system_u:object_r:fixed_disk_device_t:s15:c0.c1023 tclass=blk_file
node=jcdx type=AVC msg=audit(1234319790.266:20): avc:  denied  { read } for  pid=1453 comm="mdadm" name=".tmp-9-1" dev=tmpfs ino=5835 scontext=system_u:system_r:mdadm_t:s0-s15:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=blk_file
node=jcdx type=AVC msg=audit(1234319790.266:19): avc:  denied  { read } for  pid=1472 comm="mdadm" name="sda2" dev=tmpfs ino=505 scontext=system_u:system_r:mdadm_t:s0-s15:c0.c1023 tcontext=system_u:object_r:fixed_disk_device_t:s15:c0.c1023 tclass=blk_file
node=jcdx type=AVC msg=audit(1234319790.270:21): avc:  denied  { getattr } for  pid=1453 comm="mdadm" path="/proc/kcore" dev=proc ino=4026531986 scontext=system_u:system_r:mdadm_t:s0-s15:c0.c1023 tcontext=system_u:object_r:proc_kcore_t:s15:c0.c1023 tclass=file

Then boot stops at a recovery mode prompt.

Expected results:

boot

Additional info:

Works fine in permissive.

Comment 1 Joe Nall 2009-02-11 04:04:59 UTC
Created attachment 331512 [details]
selinux policy patch (did not work)

Comment 2 Joe Nall 2009-02-11 04:06:43 UTC
The attached patch transitions to SystemHigh when invoked by run_init in permissive. It did not change the boot behavior.

Comment 3 Doug Ledford 2009-03-18 16:57:13 UTC
Dan, do you know what's going on here?

Comment 4 Daniel Walsh 2009-03-18 18:47:52 UTC
Joe I think you need

mls_file_read_all_levels(mdadm_t)
mls_file_write_all_levels(mdadm_t)

Comment 5 Daniel Walsh 2009-03-18 18:48:37 UTC
Miroslav can you add this to F10 policy.

Comment 6 Miroslav Grepl 2009-03-20 15:42:15 UTC
Fixed in  selinux-policy-3.5.13-50.fc10

Comment 7 Bug Zapper 2009-11-18 09:50:20 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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