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