Re: Making SELinux allow access to certain directories [SOLVED]

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

 



On Monday 15 October 2007 19:24, Daniel J Walsh wrote:
> Marko Vojinovic wrote:
> > I am a newbie to SELinux, so would prefer not to create local policies
> > etc. What should I do in order to allow access for a typical service to
> > typical directory?
>
> You need to change the labeling on /www
>
> Probably something like
>
> # semanage fcontext -a -t httpd_sys_content_t '/www(/.*)?'
> # restorecon -R -v /www
>
> In order to allow httpd to read content in home directories
> you need to turn on httpd_enable_homedirs
>
> setsebool -P httpd_enable_homedirs 1

Thanks! This works great! :-)

I was amazed to see the wealth of switches listed by getsebool -a once I found 
out about it. Also when I discovered that your answer was actually in 
examples section of man semanage :-) ...

I am going to like SELinux once I get familiar with the ways to configure it.

Btw, what is the actual difference between targeted and strict policies? Why 
are there two of them? I mean, if someone uses SELinux to make the system 
more secure, why is there a distinction between "more secure" and "half more 
secure"?

Thanks for the help! :-)

Best regards, :-)
Marko

Marko Vojinovic
Institute of Physics
University of Belgrade
======================
e-mail: vmarko@xxxxxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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