Bug 958121

Summary: temp files written to wrong place (apparently
Product: [Fedora] Fedora Reporter: John J. McDonough <wb8rcr>
Component: bugzillaAssignee: Itamar Reis Peixoto <itamar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 18CC: emmanuel, itamar
Target Milestone: ---Keywords: SELinux
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-05 11:32:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John J. McDonough 2013-04-30 12:45:13 UTC
Description of problem:
Launching BZ home page results in error


Version-Release number of selected component (if applicable):
4.2.5-1.fc18

How reproducible:
always

Steps to Reproduce:
1. http://host/bugzilla/
2.
3.
  
Actual results:

Bugzilla has suffered an internal error. Please save this page and send it to jjmcd with details of what you were doing at the time this message appeared.

URL: http://cimbaoth:3665/bugzilla/

Template->process() failed twice.
First error: file error - cache failed to write index.html.tmpl: Error in tempfile() using data/template/template/en/default/XXXXXXXXXX: Could not create temp file data/template/template/en/default/90i_c6RYlo: Permission denied at /usr/lib64/perl5/vendor_perl/Template/Document.pm line 303.
Second error: file error - cache failed to write code-error.html.tmpl: Error in tempfile() using data/template/template/en/default/global/XXXXXXXXXX: Could not create temp file data/template/template/en/default/global/DfaCA1EFvO: Permission denied at /usr/lib64/perl5/vendor_perl/Template/Document.pm line 303.



Expected results:
BZ main page

Additional info:
SEAlert shows
SELinux is preventing /usr/bin/perl from create access on the file DfaCA1EFvO.
or similar.  Generating local policy changes nothing as apparently the filename is different each time (although the mypol.tt sort of looks like it should allow the directory).

Comment 1 John J. McDonough 2013-04-30 12:47:34 UTC
Realized there were uninstalled SELinux updates:
  selinux-policy.noarch 0:3.11.1-92.fc18                                       
  selinux-policy-devel.noarch 0:3.11.1-92.fc18                                 
  selinux-policy-doc.noarch 0:3.11.1-92.fc18                                   
  selinux-policy-targeted.noarch 0:3.11.1-92.fc18                              

Installed them, changed nothing.

Comment 2 Emmanuel Seyman 2013-05-05 11:32:13 UTC

*** This bug has been marked as a duplicate of bug 949130 ***