Re: Re[2]: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-03 Thread John D. Ramsdell
I had fun with SELinux when using Haskell for CGI programs. The default SELinux policy forbids CGI programs that execute code in their data segment. I had to write a policy module that allowed httpd_sys_script_t self:process execmem. Oh joy. John ___

Re: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread David Leimbach
Did you try turning off SELinux to check? 2008/12/2 Fraser Wilson [EMAIL PROTECTED] Hi all, Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the

[Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
Hi all, Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself. [EMAIL PROTECTED] audley]$

Re: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
Why didn't that occur to me? I should get more sleep. Thanks for the tip. Now I know that it definitely is SELinux, a system I understand not at all, I presume the problem is in these context things ... ghc has system_u and bin_t, while audley has unconfined_u and file_t. Time to go poking

Re[2]: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Bulat Ziganshin
Hello Fraser, Tuesday, December 2, 2008, 6:34:19 PM, you wrote: search in GHC tracker: afair there was some SELinux-releated report Why didn't that occur to me?  I should get more sleep. Thanks for the tip.  Now I know that it definitely is SELinux, a system I understand not at all, I

Re: Re[2]: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
Thanks, Bulat, ticket #738 appears to be it. It was fixed in September, but I guess it hasn't made it to yum yet, although there's a work-around with permissions and so forth. cheers, Fraser. On Tue, Dec 2, 2008 at 4:42 PM, Bulat Ziganshin [EMAIL PROTECTED]wrote: Hello Fraser, Tuesday,