Link for Logical Volume has incorrect SE Linux context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi

A few days ago we rebooted a server and found that one of the Logical
Volumes would not mount at boot, but mounted cleanly manually.

So I traced the problem to SE Linux.  Specifically the context for
/dev/mapper/VolGroup01-lv_
staff is wrong.

s -lsahZ /dev/mapper/VolGroup01-*
lrwxrwxrwx. root root system_u:object_r:quota_db_t:s0
/dev/mapper/VolGroup01-lv_staff -> ../dm-25
lrwxrwxrwx. root root system_u:object_r:device_t:s0
/dev/mapper/VolGroup01-lv_student -> ../dm-24

I have tried to correct this with the Logical Volume active and mounted
using

chcon -v --reference /dev/mapper/VolGroup01-lv_student
/dev/mapper/VolGroup01-lv_staff and while this command completes the
context is not changed.

Can someone confirm or deny that making the Logical Volume inactive and
then repeating the chcon should change the link to the correct context?

Thanks for any insight you can offer.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux