Relabeling nfs_t files

Daniel J Walsh dwalsh at
Wed Apr 26 15:49:47 UTC 2006

Orion Poplawski wrote:
> I have a problem where occasionally files end up with the nfs_t 
> context on local filesystems, presumably due to folks moving them 
> there off of nfs mounts.  However, these files cannot be backed up by 
> amanda.  My thought was to run restorecon or fixfiles regularly on the 
> directory tree to reset the context, but I get:
> audit(1145565590.726:16283): avc:  denied  { getattr } for  pid=22182 
> comm="restorecon" name="TT_v2.mat" dev=sda1 ino=204482 
> scontext=root:system_r:restorecon_t tcontext=system_u:object_r:nfs_t 
> tclass=file
I will fix this in policy. 

You should be able to execute

chcon -t DOMAIN FILE

> So, what to do?
> Thanks!
> -- 
> fedora-selinux-list mailing list
> fedora-selinux-list at

More information about the fedora-selinux-list mailing list