September 2014
Intermediate to advanced
240 pages
5h 53m
English
Next up is to create our own set of content types for a web application that does not have a policy associated with it yet. We will use DokuWiki (available at https://www.dokuwiki.org) as an example.
Install DokuWiki either through the Linux distributions' package manager or manually through a downloaded release from the main site. In this example, we assume that DokuWiki is installed at /srv/web/dokuwiki/.
To use custom web content types, follow the next set of steps:
mydokuwiki.te with the following content:apache_content_template(dokuwiki)
mydokuwiki.fc, which contains the following code:/srv/web/dokuwiki/lib/plugins(/.*)? gen_context(system_u:object_r:httpd_dokuwiki_rw_content_t,s0) ...