User Tools

Site Tools


myhelp:selinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
myhelp:selinux [2024/03/07 12:13] ulrichmyhelp:selinux [2024/03/07 12:51] (current) ulrich
Line 1: Line 1:
 # Set Lables for custom folders # Set Lables for custom folders
- +## Look in /etc/selinux/targeted/contexts/files/file_contexts if you find your app 
-  1. Look in /etc/selinux/targeted/contexts/files/file_contexts if you find your app +
 ``` ```
 grep dokuwiki /etc/selinux/targeted/contexts/files/file_contexts grep dokuwiki /etc/selinux/targeted/contexts/files/file_contexts
Line 7: Line 6:
 ``` ```
  
-  1. Add a new content to your new folder/destination +## Add a new content to your new folder/destination 
 ``` ```
 semanage fcontext -a -t httpd_sys_rw_content_t '/path/to/dokuwiki(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/path/to/dokuwiki(/.*)?'
 ``` ```
  
-  1. Restore the context +## Restore the context 
 ``` ```
 restorecon -Rv /path/to/dokuwiki restorecon -Rv /path/to/dokuwiki
Line 22: Line 21:
 semanage boolean -l semanage boolean -l
 ``` ```
- 
 OR OR
- 
 ``` ```
 getsebool -a getsebool -a
myhelp/selinux.1709813609.txt.gz · Last modified: by ulrich