Re: SELinux - a question about external drive after upgrade

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

 



Mike wrote:
> Daniel J Walsh <dwalsh <at> redhat.com> writes:
>  
>> If you mount with a "context=" flag no context will get placed on the disk.
>>
>> You may/probably do not want the files on this backup to have the
>> labels, and often are better off calling restorecon when placing them
>> back on disk.  If you have different policies on different machines, the
>> layout of file  context maybe different and in some cases the types on
>> one machine might not be understood on another.
>>
>> By placing the files back on a machine and running restorecon, you are
>> saying that you want the files labeled according to the policy of the
>> current machine.
> 
> Thanks Dan - generally true although I have modified some contexts without
> having an associated policy so some of the individual files would need to 
> then be amended after a restorecon... which was why I thought that the
> way to go was to backup with exactly the contexts from the originating 
> machine with the intention that the files from backup would only ever
> be used on the originating machine in the event of lost files or 
> some other catastrophe.
> 
> Would that be appropriate in this case?
> 
Yes that should work
> Your help is appreciated on this.
> 
> 
> 
> 
You can change the labeling with semanage fcontext of course to make
restorecon do the right thing.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux