User Tools

Site Tools


myhelp:selinux

**This is an old revision of the document!**

Set Lables for custom folders

  1. Look in /etc/selinux/targeted/contexts/files/filecontexts if you find your app <code>grep dokuwiki /etc/selinux/targeted/contexts/files/filecontexts

/var/lib/dokuwiki(/.)? systemu:objectr:httpdsysrwcontentt:s0 </code> - Add a new content to your new folder/destination <code>semanage fcontext -a -t httpdsysrwcontentt '/path/to/dokuwiki(/.)?'</code>

  1. Restore the context
    restorecon -Rv /path/to/dokuwiki

List all boolean Values

getsebool -a
myhelp/selinux.1699368991.txt.gz · Last modified: by ulrich