summaryrefslogtreecommitdiff
path: root/includes/rts/SpinLock.h
diff options
context:
space:
mode:
authorMathieu Boespflug <m@tweag.io>2014-07-18 23:55:18 -0500
committerAustin Seipp <austin@well-typed.com>2014-07-20 16:55:51 -0500
commitfb936e0db55b0522ddcabd39833c99c7c2871170 (patch)
treef4cb208d08be978e8155d8d41de2a6338c3f145f /includes/rts/SpinLock.h
parentd996a1bb4db84727fbf1a8e9461a032e04e544e7 (diff)
downloadhaskell-fb936e0db55b0522ddcabd39833c99c7c2871170.tar.gz
Make GHCi permissions checks ignore root user.
Summary: 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 now be read. Fixes #9324 Test Plan: ``` $ sudo touch .ghci $ ghci ``` Notice that the warning about the file being owned by someone else is now gone. Reviewers: austin Reviewed By: austin Subscribers: phaskell, simonmar, carter, nomeata, relrod Projects: #ghc Differential Revision: https://phabricator.haskell.org/D75
Diffstat (limited to 'includes/rts/SpinLock.h')
0 files changed, 0 insertions, 0 deletions