libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.2-1.fc16.i686 reason: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None config. time: sáb 28 ene 2012 11:01:09 CET description: :SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None config. : :***** Plugin catchall (100. confidence) suggests *************************** : :If cree que de manera predeterminada, httpd debería permitir acceso write sobre config <Desconocido>. :Then debería reportar esto como un error. :Puede generar un módulo de política local para permitir este acceso. :Do :permita el acceso momentáneamente executando: :# grep httpd /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:httpd_t:s0 :Target Context system_u:object_r:httpd_mediawiki_content_t:s0 :Target Objects config [ None ] :Source httpd :Source Path /usr/sbin/httpd :Port <Desconocido> :Host (removed) :Source RPM Packages :Target RPM Packages :Policy RPM <Desconocido> :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.2-1.fc16.i686 #1 SMP Thu : Jan 26 03:38:31 UTC 2012 i686 i686 :Alert Count 1 :First Seen sáb 28 ene 2012 10:58:53 CET :Last Seen sáb 28 ene 2012 10:58:53 CET :Local ID 879c4266-19fb-4c3b-85d7-a817511d6aad : :Raw Audit Messages :type=AVC msg=audit(1327744733.89:66): avc: denied { write } for pid=1858 comm="httpd" name="config" dev=dm-1 ino=280302 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_mediawiki_content_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1327744733.089:66): arch=40000003 syscall=33 success=no exit=-13 a0=2223b650 a1=2 a2=131dff4 a3=2223b838 items=0 ppid=1855 pid=1858 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 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_mediawiki_content_t,None,write : :audit2allow : : :audit2allow -R : :
Any idea what is going on here? Does mediawiki have a directory named config that apache should be allowed to write to?
I've run into the same issue. I'm using Fedora 17 x86_64. When creating a new wiki with mw-createinstance <PATH> a subdirectory <PATH>/config is also created. This directory needs to be written to by apache for initial configuration purposes. After initial setup (which I worked through by temporary setting SELinux to permissive), everything works fine.
Any particular file in that directory that httpd should be allowed to write to?
httpd need to create <PATH>/config/LocalSettings.php Only after the file is created can the administrator move it to <PATH> and deny write access to it.
What is the value of this <PATH> variable?
<PATH> is the directory where one wants its wiki to be created. I created mine in ~/public_html/wiki (and created ~/public_html/wiki/skins as a symlink to /usr/share/mediawiki/skins)
And apache seems to be trying to write a file named config in that directory?
no, apache tries to write to a file named LocalSettings.php in the 'config' directory.
Is the default location usually to set this up in ~/public_html/wiki If I allow httpd to write there and then the user moves it somewhere else, does /usr/lib/mediawiki/math/texvc, /usr/lib/mediawiki/math/texvc_tex, /usr/lib/mediawiki/math/texvc_tes ever have to touch ~/public_html/wiki again?
I don't know what the default location is. the README.RPM file reads: ... ... This works by running mw-createinstance <path>, where <path> is the new desired location of your wiki(s) like mw-createinstance /srv/my.host/wiki ... ... I used ~/publik_html/wiki to keep it with my other (personal) shared contents. If the wiki is moved somewhere else, texvc, texvc_tex and texvc_tes no longer need to write anything. In fact, after initial setup, the wiki owner is advised to remove the config directory after configuration is done: From the rpm description (rpm -qi): "Remember to remove the config dir after completing the configuration"
This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.