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. laanwj closed this on Nov 25, 2015

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

    This issue has been reintroduced in v0.12.1

  12. laanwj reopened this on Jun 8, 2016

  13. 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
    
  14. 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.

  15. jonasschnelli referenced this in commit cdf7dff424 on Jun 8, 2016
  16. laanwj closed this on Jun 9, 2016

  17. laanwj referenced this in commit 172cd7f10c on Jun 9, 2016
  18. laanwj referenced this in commit 0f8d574e8f on Jun 9, 2016
  19. luke-jr referenced this in commit 9d016a4c5f on Jun 17, 2016
  20. thokon00 referenced this in commit c96cb4b667 on Jun 28, 2016
  21. nomnombtc referenced this in commit cd71134950 on Nov 12, 2016
  22. nomnombtc referenced this in commit 2eb50f0047 on Nov 12, 2016
  23. nomnombtc referenced this in commit b3d8917683 on Nov 13, 2016
  24. sickpig referenced this in commit 863bcf2146 on Nov 14, 2016
  25. dexX7 referenced this in commit a400d26561 on Jun 8, 2017
  26. dexX7 referenced this in commit 2476c64723 on Jun 8, 2017
  27. dexX7 referenced this in commit 3edbe7cc79 on Jun 8, 2017
  28. DrahtBot 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-04-14 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me