smartd and 3ware

Dominick Grift domg472 at gmail.com
Sun Jan 16 21:42:33 UTC 2011


On Sun, Jan 16, 2011 at 10:33:36PM +0100, Ruben Kerkhof wrote:
> On Sun, Jan 16, 2011 at 21:54, Dominick Grift <domg472 at gmail.com> wrote:
> > On Sun, Jan 16, 2011 at 09:47:10PM +0100, Ruben Kerkhof wrote:
> >> On Sun, Jan 16, 2011 at 21:25, Dominick Grift <domg472 at gmail.com> wrote:
> >>
> >> > The boolean seems to imply that smartd actually creates the device.
> >> > I am not too familiar with smartd but i guess it did not create the device node in your case
> >> >
> >>
> >> Exactly, I disabled smartd and rebooted the box, and the device nodes
> >> are there. So it seems to me that it's either udev or the kernel which
> >> creates them.
> >
> > Does dmesg show anything related to this device?
> >
> > Look for lines similar to this:
> >
> > SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts
> >
> 
> Nothing specific:
> 
> [ruben at ev003 ~]$ dmesg | grep genfs
> SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
> SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
> SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
> SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
> SELinux: initialized (dev proc, type proc), uses genfs_contexts
> SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
> SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
> SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
> SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
> SELinux: initialized (dev proc, type proc), uses genfs_contexts
> SELinux: initialized (dev proc, type proc), uses genfs_contexts
> 
> Looking at the 3ware driver (drivers/scsi/3w-9xxx.c) it looks it is
> responsible for creating the character devices, using register_chrdev.
> Since /dev is labeled device_t, /dev/twa* ends up as device_t too.
> 
> No idea how to go from here... should udev relabel it?

yes i think so and i think also initramfs (dracut) restores /dev so i am not sure where this goes wrong.
hopefully others can shed some light on this.
> 
> Thanks,
> 
> Ruben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/selinux/attachments/20110116/a1938b6b/attachment.bin 


More information about the selinux mailing list