Re: selinux and home dirs

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

 



Eamon Walsh <ewalsh@xxxxxxxxxxxxx> writes:
> On 11/17/2009 05:27 PM, Wolfgang S. Rupprecht wrote:
>> How do I add a second /home tree to selinux so that both /home and
>> /home2 have the same policies and restorecon correctly?  There seems to
>> be quite a bit of logic in
>> /etc/selinux/targeted/contexts/files/file_contexts.homedirs to treat the
>> files in the home directory specially, but I can't see where the "/home/"
>> string gets set.
>>
>> -wolfgang
>>   
>
> genhomedircon goes through the passwd file looking at the home
> directories for all the users.  So if a user has /home2 listed it should
> generate the file_contexts.homedirs properly with both prefixes.
>
> /home2 itself would need to be labeled with home_root_t just like /home
> is.  Dan's fcontext --equiv would work for this (set /home2 equal to
> /home) or it could be added manually using semanage fcontext.

Thanks Eamon and Dan!  

I do see that something magically added the /home2 versions since the
last time I looked.  It is good to know how to do this by hand to speed
up the process.

-wolfgang
-- 
Wolfgang S. Rupprecht
If the airwaves belong to the public why does the public only get 3
non-overlapping WIFI channels?

-- 
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