瀏覽代碼

SeLinux context

Prefer apply rights to the whole data instead of individual subdir
Henry 8 年之前
父節點
當前提交
28403cd6aa
共有 2 個文件被更改,包括 4 次插入42 次删除
  1. 2 22
      docs/en/users/07_Frequently_Asked_Questions.md
  2. 2 20
      docs/fr/users/07_Frequently_Asked_Questions.md

+ 2 - 22
docs/en/users/07_Frequently_Asked_Questions.md

@@ -47,28 +47,8 @@ For more information on that matter, there is a [dedicated documentation](../../
 
 ## Permissions under SELinux
 
-Some Linux distribution like Fedora or RedHat Enterprise Linux have SELinux system enabled. This acts like a firewall application, so all applications cannot write/modify files under certain conditions. While installing FreshRSS, step 2 can fail if the httpd process cannot write to the following directories : 
-
- - FreshRSS/data
- - FreshRSS/data/cache
- - FreshRSS/data/favicons
- - FreshRSS/data/users
-
-The following commands should be executed as root :
-
-```sh
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/cache'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/users'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/favicons'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/PubSubHubbub'
-
-restorecon -Rv /usr/share/FreshRSS/data
-```
-
-If for some reasons right should be granted to the whole data directory (itself and sub-directories), execute the following commands:
-
+Some Linux distribution like Fedora or RedHat Enterprise Linux have SELinux system enabled. This acts like a firewall application, so all applications cannot write/modify files under certain conditions. While installing FreshRSS, step 2 can fail if the httpd process cannot write to some data sub-directories, the following command should be executed as root : 
 ```sh
 semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data(/.*)?'
 restorecon -Rv /usr/share/FreshRSS/data
-```
+```

+ 2 - 20
docs/fr/users/07_Frequently_Asked_Questions.md

@@ -47,26 +47,8 @@ Pour plus d'information à ce sujet, il existe la [documentation dédiée](../..
 
 ## Gérer les permissions sous SELinux
 
-Certaines distributions Linux comme Fedora ou RedHat Enterprise Linux (RHEL) activent par défaut le système SELinux. Celui-ci permet de gérer des permissions au niveau des processus. Lors de l'installation de FreshRSS, l'étape 2 procède à la vérification des droits sur certains répertoires:
-
- - FreshRSS/data
- - FreshRSS/data/cache
- - FreshRSS/data/favicons
- - FreshRSS/data/users
-
-Il faut donc exécuter les commandes suivantes en tant que root :
-```sh
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/cache'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/users'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/favicons'
-semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data/PubSubHubbub'
-
-restorecon -Rv /usr/share/FreshRSS/data
-```
-
-Si les droits doivent s'appliquer à tous les sous-répertoires de data et data lui-même, exécuter les commandes suivantes:
+Certaines distributions Linux comme Fedora ou RedHat Enterprise Linux (RHEL) activent par défaut le système SELinux. Celui-ci permet de gérer des permissions au niveau des processus. Lors de l'installation de FreshRSS, l'étape 2 procède à la vérification des droits sur certains répertoires, il faut donc exécuter la commande suivante en tant que root:
 ```sh
 semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/FreshRSS/data(/.*)?'
 restorecon -Rv /usr/share/FreshRSS/data
-```
+```