Re: [FC5] New Partition help

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

 



On Fri, 2006-04-07 at 21:24 -0400, mroselinux@xxxxxxxxxxxxxxxxxxxx
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@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/

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux