[FC5] New Partition help
Bob Kashani
bobk at ocf.berkeley.edu
Sat Apr 8 01:55:02 UTC 2006
On Fri, 2006-04-07 at 21:24 -0400, mroselinux at eastgranby.k12.ct.us
wrote:
> As I indicated in a previous message, I am migrating a samba server from
> FC3 to FC5 and have run into another SELINUX policy issue. I have a
> second hard drive with a single ext3 partition that I primarly use for
> backups. It is labeled /backup. I did a mkdir /backup and entered the
> appropriate line into fstab. When I reboot, I get the following
>
> -----------------------------------------------------------------------
>
> Apr 7 21:08:11 localhost kernel: audit(1144458480.400:2): avc: denied {
> getattr } for pid=2036 comm="hald" name="/" dev=hdb1 ino=2
> scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:file_t:s0
> tclass=dir
> Apr 7 21:08:11 localhost kernel: audit(1144458480.444:3): avc: denied {
> getattr } for pid=2036 comm="hald" name="/" dev=hdb1 ino=2
> scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:file_t:s0
> tclass=dir
> Apr 7 21:08:11 localhost kernel: audit(1144458480.516:4): avc: denied {
> getattr } for pid=2036 comm="hald" name="/" dev=hdb1 ino=2
> scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:file_t:s0
> tclass=dir
>
> --------------------------------------------------------------------------
>
> What do I need to do to support the /backup partition with SELINUX?
I have the same setup. :) Mine is labeled root_t it seems.
[medieval at chaucer ~]$ ls -Zd /mnt/hdb1
drwxr-xr-x root root system_u:object_r:root_t /mnt/hdb1
Try this:
chcon -t root_t /mnt/hdb1
See if that helps. You can also do a "restorecon -R /mnt/hdb1" too I
think.
Bob
--
Bob Kashani
http://www.gnome.org/~bobk/
More information about the selinux
mailing list