binary 0.10.0 tarball modifies ./ #5789

issue robby-dermody opened this issue on February 12, 2015
  1. robby-dermody commented at 8:23 PM on February 12, 2015: none

    It seems that the 0.10.0 binary tarball (for linux64 at least, e.g. https://bitcoin.org/bin/0.10.0/test/bitcoin-0.10.0rc4-linux64.tar.gz) attempts a chmod on ./ to 0755. e.g.:

    local@ubuntu:/tmp$ tar -zxvf bitcoin-0.10.0rc4-linux64.tar.gz 
    ./
    ./bitcoin-0.10.0/
    ./bitcoin-0.10.0/bin/
    ./bitcoin-0.10.0/bin/bitcoin-cli
    ./bitcoin-0.10.0/bin/bitcoind
    ./bitcoin-0.10.0/bin/bitcoin-qt
    ./bitcoin-0.10.0/bin/bitcoin-tx
    ./bitcoin-0.10.0/bin/test_bitcoin
    ./bitcoin-0.10.0/bin/test_bitcoin-qt
    ./bitcoin-0.10.0/include/
    ./bitcoin-0.10.0/include/bitcoinconsensus.h
    ./bitcoin-0.10.0/lib/
    ./bitcoin-0.10.0/lib/libbitcoinconsensus.so
    ./bitcoin-0.10.0/lib/libbitcoinconsensus.so.0
    ./bitcoin-0.10.0/lib/libbitcoinconsensus.so.0.0.0
    tar: .: Cannot utime: Operation not permitted
    tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
    tar: Exiting with failure status due to previous errors
    

    So, if I had done this as root, my /tmp would be 0755 instead of 1777. Appears to attempt to modify utime as well...

  2. robby-dermody renamed this:
    binary tarball modifies ./
    binary 0.10.0 tarball modifies ./
    on Feb 12, 2015
  3. btcdrak commented at 8:31 PM on February 12, 2015: contributor

    I can confirm this too.

  4. theuni commented at 8:49 PM on February 12, 2015: member

    Yikes. Thanks for reporting.

    I'm gitian-building with a potential fix now. I'll PR it once it's confirmed working.

  5. theuni commented at 10:17 PM on February 12, 2015: member

    @robby-dermody @btcdrak It'd be great if you could verify that the build results in #5790 have properly addressed the problem.

  6. laanwj closed this on Feb 13, 2015

  7. laanwj commented at 9:31 AM on February 13, 2015: member

    Thank for catching this. Somewhat unexpected to me that tar can even do this with the default settings. So the security-conscious should always untar into a newly-created directory.

  8. 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-18 18:15 UTC

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