Mac Gatekeeper security prompt every time #7085

issue oliverdowling opened this issue on November 23, 2015
  1. oliverdowling commented at 11:52 PM on November 23, 2015: none

    Environment:

    Mac OS X 10.11.1 El Capitan Bitcoin Core 0.11.2

    Problem:

    Every time I open Bitcoin Core, I get prompted by Apple's Gatekeeper security:

    screen shot 2015-11-24 at 10 27 13

    Temporary Solutions:

    Option 1

    Specifically remove the app from quarantine:

    sudo xattr -d com.apple.quarantine /Applications/Bitcoin-Qt.app
    

    Option 2

    Disable Gatekeeper.

    Option 3

    Edit permissions.

    Cause:

    I believe the actual cause is the permissions on the file. Bitcoin Core has 0555 permissions, but all the other applications I have installed myself have 0755 permissions.

    I verified, by changing the permissions to 0755, opening Bitcoin Core, clicking "open", quitting Bitcoin Core, and opening Bitcoin Core again, and I no longer receive the Gatekeeper security prompt.

    However, Bitcoin Core is now prompting me that I "need to rebuild the databse using -reindex to change -txindex", but I'm guessing this is because it may not be reading my bitcoin.conf properly anymore because of a permissions issue that I have caused. Edit: I think this is user error.

  2. laanwj added the label Build system on Nov 24, 2015
  3. laanwj commented at 8:07 AM on November 24, 2015: member

    @theuni can you take a look here?

  4. laanwj added the label Mac on Nov 24, 2015
  5. jonasschnelli commented at 8:26 AM on November 24, 2015: contributor

    Just tested on OSX 10.11. Confirmed. Executing chmod -Rf 755 Bitcoin-Qt.app cured the issue.

  6. jonasschnelli commented at 8:31 AM on November 24, 2015: contributor

    Only the application folder needs 755 (drwxr-xr-x; requires owner write permission) permissions: chmod 755 Bitcoin-Qt.app/. The folder has 555 (dr-xr-xr-x).

  7. jonasschnelli commented at 11:39 AM on November 24, 2015: contributor

    I think the first mkdir is accountable for the 555 permission. Maybe a gitian umask issue? https://github.com/bitcoin/bitcoin/blob/master/Makefile.am#L71 But i'll wait for @theuni before i try a fix.

  8. jonasschnelli added the label Priority Medium on Nov 24, 2015
  9. theuni commented at 7:45 PM on November 24, 2015: member

    Odd. Looking now.

  10. theuni cross-referenced this on Nov 24, 2015 from issue build: Set osx permissions in the dmg to make Gatekeeper happy by theuni
  11. laanwj closed this on Nov 25, 2015

  12. ghost commented at 4:12 AM on June 8, 2016: none

    This issue has been reintroduced in v0.12.1

  13. laanwj reopened this on Jun 8, 2016

  14. jonasschnelli commented at 11:19 AM on June 8, 2016: contributor

    Yes. Confirmed. Just double checked v0.12.1 from https://bitcoin.org/bin/bitcoin-core-0.12.1/ and Indeed the problem is still present.

    Although the issue is not present with a gitian nightly build https://bitcoin.jonasschnelli.ch/nightlybuilds/2016-06-07

    "Official" v0.12.1 release has:

    $ ls -la ~/Desktop/Bitcoin-Qt.app
    total 0
    dr-xr-xr-x@  3 jonasschnelli  staff   102  1 Jan 01:00 .
    drwxr-xr-x+ 42 jonasschnelli  staff  1428  8 Jun 13:15 ..
    dr-xr-xr-x@  7 jonasschnelli  staff   238  1 Jan 01:00 Contents
    

    Nightly build:

    $ ls -la ~/Desktop/Bitcoin-Qt.app
    total 0
    drwxr-xr-x@  3 jonasschnelli  staff   102  1 Jan 01:00 .
    drwxr-xr-x+ 42 jonasschnelli  staff  1428  8 Jun 13:14 ..
    drwxr-xr-x@  6 jonasschnelli  staff   204  1 Jan 01:00 Contents
    
  15. jonasschnelli commented at 11:23 AM on June 8, 2016: contributor

    @theuni: is it possible that the gitian detatched signer accidentally changes the Bitcoin-Qt.app folders permission? Because the nightly build I have compared against is unsigned.

  16. jonasschnelli referenced this in commit cdf7dff424 on Jun 8, 2016
  17. jonasschnelli cross-referenced this on Jun 8, 2016 from issue OSX diskimages need 0775 folder permissions by jonasschnelli
  18. laanwj closed this on Jun 9, 2016

  19. laanwj referenced this in commit 172cd7f10c on Jun 9, 2016
  20. laanwj referenced this in commit 0f8d574e8f on Jun 9, 2016
  21. luke-jr referenced this in commit 9d016a4c5f on Jun 17, 2016
  22. thokon00 referenced this in commit c96cb4b667 on Jun 28, 2016
  23. nomnombtc referenced this in commit cd71134950 on Nov 12, 2016
  24. nomnombtc referenced this in commit 2eb50f0047 on Nov 12, 2016
  25. nomnombtc referenced this in commit b3d8917683 on Nov 13, 2016
  26. sickpig referenced this in commit 863bcf2146 on Nov 14, 2016
  27. dexX7 referenced this in commit a400d26561 on Jun 8, 2017
  28. dexX7 referenced this in commit 2476c64723 on Jun 8, 2017
  29. dexX7 referenced this in commit 3edbe7cc79 on Jun 8, 2017
  30. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC