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

Philippe Naudin

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


Hello,

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
system_u:object_r:removable_device_t:s0.

This cause smartmontools to fail :
  avc:  denied  { read write } for  pid=2847 comm="smartd"
  name="megadev0" dev=tmpfs ino=8284
  scontext=system_u:system_r:fsdaemon_t:s0
  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 ?

Thanks,

-- 
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: 04.99.61.26.34, fax: 04.99.61.29.03, mél: naudin at supagro.inra.fr



More information about the CentOS mailing list