What is the proper way to use an alternate public_html path?

Paul Howarth paul at city-fan.org
Sun Dec 14 16:09:12 UTC 2008


On Sun, 14 Dec 2008 01:21:46 -0600
"Arthur Pemberton" <pemboa at gmail.com> wrote:

> i would like to use ~/Public insted of ~/public_html.
> 
> What is the proper way to do this such that restorecon respects the
> change?

I do it by creating a local policy module (localmisc) and put this (I
use ~/WWW for this purpose) in localmisc.fc:

HOME_DIR/WWW(/.*)? gen_context(system_u:object_r:public_content_rw_t,s0)

Paul.




More information about the selinux mailing list