[GHC] #8248: GHCi should not fail to honour ghci.conf or .ghci if group writable

GHC ghc-devs at haskell.org
Thu Nov 20 07:35:49 UTC 2014


#8248: GHCi should not fail to honour ghci.conf or .ghci if group writable
-------------------------------------+-------------------------------------
              Reporter:  afcowie     |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  GHCi        |          Version:  7.6.3
            Resolution:              |         Keywords:
      Operating System:  Linux       |     Architecture:  Unknown/Multiple
       Type of failure:  GHC         |       Difficulty:  Unknown
  rejects valid program              |       Blocked By:
             Test Case:              |  Related Tickets:  #9324
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by hvr):

 IMHO, `.ghci` is comparable to `.bash_profile`/`.bashrc` et al, in that it
 allows code to be injected if not properly protected against users.

 Otoh, maybe we could define a magic comment to be placed at the start of
 `.ghci` to disregard this protection. E.g. something simple as

 {{{
 -- insecure
 :set ...
 :def ...
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8248#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list