Bug 1239198 - RequestTracker Not Properly Configured with SELinux
Summary: RequestTracker Not Properly Configured with SELinux
Keywords:
Status: CLOSED DUPLICATE of bug 1185500
Alias: None
Product: Fedora
Classification: Fedora
Component: rt
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-04 07:40 UTC by Joseph D. Wagner
Modified: 2015-07-04 14:32 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-04 14:32:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joseph D. Wagner 2015-07-04 07:40:41 UTC
Description of problem:
RequestTracker requires write access to /var/lib/rt for cache and session state information.

Error from audit.log:
type=AVC msg=audit(1435994355.726:771): avc:  denied  { getattr } for  pid=6386 comm="/usr/sbin/rt-se" path="/var/cache/rt/mason_data/obj/.__obj_create_marker" dev="vda2" ino=662318 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file permissive=0
type=AVC msg=audit(1435994355.726:772): avc:  denied  { write } for  pid=6386 comm="/usr/sbin/rt-se" name=".__obj_create_marker" dev="vda2" ino=662318 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file permissive=0

How reproducible: 100%

Steps to Reproduce:
1. Take a working rt installation.
2. Reset labels on /var/lib/rt to defaults.
3. Go to website in browser.

Actual results:
An error message about an internal error.

Expected results:
A working system.

Additional info:
Problem can be fixed by running:
# chcon -R -t httpd_sys_rw_content_t /var/cache/rt
However, this only hold until the next relabel/restorecon.

Comment 1 Jason Tibbitts 2015-07-04 14:32:44 UTC
Note that selinux policy issues should be filed against selinux-policy.  There is, however, a longstanding ticket on this already.

Also, a note that you can make the context change permanent with

semanage fcontext -a -t httpd_sys_rw_content_t ' /var/cache/rt(/.*)?'
restorecon -R -v /var/cache/rt

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


Note You need to log in before you can comment on or make changes to this bug.