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?