Bug 195820

Summary: darcs requires SELinux allow_execmem=true priviledge
Product: [Fedora] Fedora Reporter: Hans Ulrich Niedermann <rhbugs>
Component: darcsAssignee: Jens Petersen <petersen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.8-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-30 03:07:43 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:
Bug Depends On: 195821    
Bug Blocks:    

Description Hans Ulrich Niedermann 2006-06-18 08:12:31 UTC
Description of problem:

  darcs does not work at all unless the SELinux allow_execmem boolean
  is set to true.

  This seems to be caused by ghc, but as it nevertheless affects darcs,
  I am submitting this bug report as a reminder, and as a help for people
  running into the same problem.

Version-Release number of selected component (if applicable):

  darcs-1.0.7-1.fc5

How reproducible:

  Every time.


Steps to Reproduce:

  1. Run "darcs get --partial http://fasodjfasdhgjkhasdkjf.xyz/ajdlfk/"
     (you can also use a known good URL like http://iki.fi/tuomov/repos/ion-3/)

Actual results:

  darcs: internal error: getMBlock: mmap: Permission denied
      Please report this as a compiler bug.  See:
      http://www.haskell.org/ghc/reportabug

Expected results:

  Invalid repository:  http://fasodjfasdhgjkhasdkjf.xyz/ajdlfk

  darcs failed:  Failed to download URL http://fasodjfasdhgjkhasdkjf.xyz/ajdlfk/_d
  arcs/inventory
  libcurl: couldn't resolve host

Additional info:

Comment 1 Jens Petersen 2006-06-21 08:12:32 UTC
Thanks for the report.  Do you know how to fix this?
I'm not that familiar with selinux.

Comment 2 Jens Petersen 2006-06-21 08:22:07 UTC
This has been discussed upstream: <http://cvs.haskell.org/trac/ghc/ticket/738>.

Comment 3 Jens Petersen 2006-06-22 13:48:00 UTC

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

Comment 4 Hans Ulrich Niedermann 2006-06-22 22:31:59 UTC
Are you sure this is a duplicate of the ghc bug?

After all, darcs (like all Haskell software) will have to be recompiled with a
new version of ghc once ghc bug #195821 has been fixed.

Marking darcs as requiring that recompilation (with this bug) makes sense,
doesn't it?


Comment 5 Jens Petersen 2006-06-23 01:17:15 UTC
Fair point - re-opening to track this for darcs.

Comment 6 Jens Petersen 2006-06-29 08:39:12 UTC
darcs-1.0.8-2.fc6 should have a fix for this.

Comment 7 Jens Petersen 2006-06-29 08:41:21 UTC
Could you test this on fc5?  It is ok I'll put out an update for fc5 too.

Is an update needed for fc4 too?

Comment 8 Jens Petersen 2006-06-30 03:07:43 UTC
I built the update for fc5.