[CentOS] CentOS-5.7 + megaraid + SELinux : update problem

Thu Nov 3 12:28:53 UTC 2011
Philippe Naudin <philippe.naudin at supagro.inra.fr>


After updating to CentOS-5.7, I have a (small) problem :

The context of /dev/megadev0 is now defined
(in /etc/selinux/targeted/contexts/files/file_contexts) as

This cause smartmontools to fail :
  avc:  denied  { read write } for  pid=2847 comm="smartd"
  name="megadev0" dev=tmpfs ino=8284
  tcontext=system_u:object_r:removable_device_t:s0 tclass=chr_file

Changing the context (of megadev0) to fixed_disk_device_t solves the 
problem, but is this the best solution ?


Philippe Naudin
UMR MISTEA : Mathématiques, Informatique et STatistique pour 
l'Environnement et l'Agronomie
INRA, bâtiment 29   -   2 place Viala   -   34060 Montpellier cedex 2
tél:, fax:, mél: naudin at supagro.inra.fr