Bug 139516

Summary: htsearch can't access to db (selinux related)
Product: [Fedora] Fedora Reporter: Ricardo Ariel Gorosito <rgorosito>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jorton, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-11 21:50:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ricardo Ariel Gorosito 2004-11-16 15:12:18 UTC
Description of problem:
With default policy (targeted,enforcing), htsearch can't access to db

Version-Release number of selected component (if applicable):
htdig-3.2.0b6-3

How reproducible:
allways

Steps to Reproduce:
1. run (as root) rundig
2. try to search a word in http://??/htdig/
3.
  
Actual results:
Error:
ht://Dig error

htsearch detected an error. Please report this to the webmaster of
this site by sending an e-mail to: rgorosito@... The error message is:

Unable to read word database file '/var/lib/htdig/db.words.db'
Did you run htdig?

Additional info:
from /var/log/messages:
audit(1100616704.732:0): avc:  denied  { search } for  pid=16285
exe=/var/www/cgi-bin/htsearch
scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:sysctl_kernel_t tclass=dir
audit(1100616704.733:0): avc:  denied  { search } for  pid=16285
exe=/var/www/cgi-bin/htsearch name=sys dev=proc ino=-268435431
scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:sysctl_t tclass=dir
audit(1100616704.943:0): avc:  denied  { ioctl } for  pid=16285
exe=/var/www/cgi-bin/htsearch path=/etc/htdig/htdig.conf dev=hda2
ino=281655 scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:etc_t tclass=file
audit(1100616704.955:0): avc:  denied  { ioctl } for  pid=16285
exe=/var/www/cgi-bin/htsearch path=/etc/htdig/htdig.conf dev=hda2
ino=281655 scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:etc_t tclass=file
audit(1100616704.955:0): avc:  denied  { ioctl } for  pid=16285
exe=/var/www/cgi-bin/htsearch path=/etc/htdig/htdig.conf dev=hda2
ino=281655 scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:etc_t tclass=file
audit(1100616705.160:0): avc:  denied  { search } for  pid=16285
exe=/var/www/cgi-bin/htsearch name=lib dev=hda2 ino=684098
scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:var_lib_t tclass=dir

Comment 1 Daniel Walsh 2004-11-30 21:58:01 UTC
Updated policy in selinux-policy-targeted-1.17.30-2.39
and
selinux-policy-targeted-1.19.8-2