[GHC] #9324: GHCi permission checks should ignore root user

GHC ghc-devs at haskell.org
Thu Jul 17 09:01:31 UTC 2014


#9324: GHCi permission checks should ignore root user
-------------------------------------+-------------------------------------
        Reporter:  mboes             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.8.2
        Keywords:                    |  Differential Revisions:
Operating System:  POSIX             |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
       Test Case:                    |              Difficulty:  Unknown
        Blocking:                    |              Blocked By:
                                     |         Related Tickets:
-------------------------------------+-------------------------------------
 As a security precaution, GHCi helpfully refuses to run a `.ghci` file if
 it is owned by another user. But if the that other user is root, then
 arguably GHCi should not refuse to interpret the file, because if root
 really was malicious, then the user would be having a bad day anyways.

 This means that .ghci files installed in a global location, say under
 `/usr/local/`, can then be read.

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


More information about the ghc-tickets mailing list