Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th June 2008, 06:40 AM
Kiwon Um Offline
Registered User
 
Join Date: Jul 2007
Location: Seoul
Age: 29
Posts: 59
mediawiki math with selinux

Hello.
I'm a Fedora8 user.

Because the yum pack was not latest version, I installed MediaWiki-1.12.0 from the official website, and all is fine except math function.

I'm now using texlive 2007 for my latex system.
So I modified the render.ml file in the wiki/math folder.
Quote:
...
let cmd_dvips tmpprefix = "/usr/local/texlive/2007/bin/i386-linux/dvips -q -R -E " ^ tmpprefix ^ ".dvi -f >" ^ tmpprefix ^ ".ps"
let cmd_latex tmpprefix = "/usr/local/texlive/2007/bin/i386-linux/latex " ^ tmpprefix ^ ".tex >/dev/null"
let cmd_dvipng tmpprefix finalpath = "/usr/local/texlive/2007/bin/i386-linux/dvipng -gamma 1.5 -D 120 -T tight --strict " ^ tmpprefix ^ ".dvi -o " ^ finalpath ^ " >/dev/null 2>/dev/null"
...
Although the equations are rendered well, I'm now getting a selinux alert:
Quote:
Summary:

SELinux is preventing the texvc from using potentially mislabeled files
anon_inode (anon_inodefs_t).

Detailed Description:

SELinux has denied the texvc access to potentially mislabeled files anon_inode.
This means that SELinux will not allow httpd to use these files. Many third
party apps install html files in directories that SELinux policy cannot predict.
These directories have to be labeled with a file context which httpd can access.

Allowing Access:

If you want to change the file context of anon_inode so that the httpd daemon
can access it, you need to execute it using chcon -t httpd_sys_content_t
'anon_inode'. You can look at the httpd_selinux man page for additional
information.

Additional Information:

Source Context system_u:system_r:httpd_sys_script_t:s0
Target Context system_u:object_r:anon_inodefs_t:s0
Target Objects anon_inode [ file ]
Source texvc
Source Path .............wiki/math/texvc
Port <Unknown>
Host ......localhost
Source RPM Packages
Target RPM Packages
Policy RPM selinux-policy-3.0.8-109.fc8
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name httpd_bad_labels
Host Name ........localhost
Platform Linux ........localhost 2.6.24.7-92.fc8 #1 SMP Wed
May 7 16:50:09 EDT 2008 i686 i686
Alert Count 1
First Seen Fri 06 Jun 2008 02:29:38 PM KST
Last Seen Fri 06 Jun 2008 02:29:38 PM KST
Local ID .............................
Line Numbers

Raw Audit Messages

host=........localhost type=AVC msg=audit(1212730178.265:62): avc: denied { read write } for pid=7013 comm="texvc" path="anon_inode:[eventpoll]" dev=anon_inodefs ino=10 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:anon_inodefs_t:s0 tclass=file

host=.......localhost type=SYSCALL msg=audit(1212730178.265:62): arch=40000003 syscall=11 per=400000 success=yes exit=0 a0=849b720 a1=849b750 a2=8499dc0 a3=40 items=0 ppid=6956 pid=7013 auid=500 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) comm="texvc" exe="...........wiki/math/texvc" subj=system_u:system_r:httpd_sys_script_t:s0 key=(null)
I've couldn't change the file context of 'anon_inode', it's nowhere......
How can I solve this?

Last edited by Kiwon Um; 6th June 2008 at 06:44 AM.
Reply With Quote
Reply

Tags
math, mediawiki, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaWiki: Obviously no CSS applied MichiGreat Servers & Networking 3 7th August 2009 06:59 PM
[Solved] MediaWiki math setup kwan3217 Servers & Networking 0 28th August 2008 09:22 PM
Mediawiki install jazzman83 Using Fedora 3 17th December 2007 11:54 PM
MediaWiki problem shallowz Using Fedora 9 9th April 2007 11:41 PM
MediaWiki 1,5.8 in FC 5 MichiGreat Installation and Live Media 2 29th March 2006 04:30 PM


Current GMT-time: 14:17 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat