- Modifié
Bonjour,
Comme indiqué sur le wiki j'ai installé le serveur Apache, mais au démarage de celui-ci, j'ai l'erreur suivante
Merci de votre aide.
EDIT: j'ai remplacé les balises quote par les balises code
Comme indiqué sur le wiki j'ai installé le serveur Apache, mais au démarage de celui-ci, j'ai l'erreur suivante
[gg@localhost conf.d]$ service httpd start
Starting httpd (via systemctl): Failed to issue method call: Access denied
[FAILED]
voici ce que retourne SelinuxSELinux is preventing /usr/sbin/httpd from using the execstack access on a process.
***** Plugin catchall_boolean (89.3 confiance) suggéré***********************
Siyou want to allow httpd scripts and modules execmem/execstack
Alorsyou must tell SELinux about this by enabling the 'httpd_execmem' boolean.
Faire
setsebool -P httpd_execmem 1
***** Plugin catchall (11.6 confiance) suggéré*******************************
Siyou believe that httpd should be allowed execstack access on processes labeled httpd_t by default.
Alorsyou should report this as a bug.
You can generate a local policy module to allow this access.
Faire
allow this access for now by executing:
# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Additional Information:
Contexte source system_u:system_r:httpd_t:s0
Contexte cible system_u:system_r:httpd_t:s0
Objets du contexte Unknown [ process ]
Source httpd
Chemin de la source /usr/sbin/httpd
Port <Inconnu>
Hôte localhost.localdomain
Paquetages RPM source httpd-2.2.17-10.fc15.1
Paquetages RPM cible
RPM de la statégie selinux-policy-3.9.16-24.fc15
Selinux activé True
Type de stratégie targeted
Mode strict Enforcing
Nom de l'hôte localhost.localdomain
Plateforme Linux localhost.localdomain
2.6.38.6-27.fc15.x86_64 #1 SMP Sun May 15 17:23:28
UTC 2011 x86_64 x86_64
Compteur d'alertes 12
Première alerte mar 31 mai 2011 16:28:26 CEST
Dernière alerte mar 31 mai 2011 20:37:51 CEST
ID local f06f7e00-1c29-460b-8048-1d0842e99c2f
Messages d'audit bruts
type=AVC msg=audit(1306867071.681:147): avc: denied { execstack } for pid=16886 comm="httpd" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=process
type=SYSCALL msg=audit(1306867071.681:147): arch=x86_64 syscall=mprotect success=no exit=EACCES a0=7fff4525f000 a1=1000 a2=1000007 a3=7faac47a4f89 items=0 ppid=16885 pid=16886 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)
Hash: httpd,httpd_t,httpd_t,process,execstack
audit2allow
#============= httpd_t ==============
#!!!! This avc can be allowed using the boolean 'httpd_execmem'
allow httpd_t self:process execstack;
audit2allow -R
#============= httpd_t ==============
#!!!! This avc can be allowed using the boolean 'httpd_execmem'
allow httpd_t self:process execstack;
Merci de votre aide.
EDIT: j'ai remplacé les balises quote par les balises code