User Tools

Site Tools


myhelp:selinux

Differences

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

Link to this comparison view

Next revision
Previous revision
myhelp:selinux [2023/11/07 14:34] – created 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 <code>grep dokuwiki /etc/selinux/targeted/contexts/files/file_contexts +## Look in /etc/selinux/targeted/contexts/files/file_contexts if you find your app  
-/var/lib/dokuwiki(/.*)? system_u:object_r:httpd_sys_rw_content_t:s0 </code> +``` 
-  Add a new content to your new folder/destination <code>semanage fcontext -a -t httpd_sys_rw_content_t '/path/to/dokuwiki(/.*)?'</code> +grep dokuwiki /etc/selinux/targeted/contexts/files/file_contexts 
-  Restore the context <code>restorecon -Rv /path/to/dokuwiki</code>+/var/lib/dokuwiki(/.*)? system_u:object_r:httpd_sys_rw_content_t:s0 
 +``` 
 + 
 +## Add a new content to your new folder/destination  
 +``` 
 +semanage fcontext -a -t httpd_sys_rw_content_t '/path/to/dokuwiki(/.*)?' 
 +``` 
 + 
 +## Restore the context  
 +``` 
 +restorecon -Rv /path/to/dokuwiki 
 +``` 
 + 
 +# List all boolean Values 
 + 
 +``` 
 +semanage boolean -l 
 +``` 
 +OR 
 +``` 
 +getsebool -a 
 +``` 
 + 
myhelp/selinux.1699367662.txt.gz · Last modified: by ulrich