Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox too strict on macos #4389

Open
hannesm opened this issue Oct 12, 2020 · 2 comments · May be fixed by #4797
Open

sandbox too strict on macos #4389

hannesm opened this issue Oct 12, 2020 · 2 comments · May be fixed by #4797

Comments

@hannesm
Copy link
Member

hannesm commented Oct 12, 2020

The sandbox script on macos denies to properly run various commands in the test phase, as an example security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain does not output the trust anchors as expected -- observed in https://travis-ci.org/github/ocaml/opam-repository/jobs/734785206

How to reproduce: on a macos system, opam pin -n ca-certs https://github.com/mirage/ca-certs.git#v0.1.2 && opam install -t ca-certs. The expected result is that all tests are passing (which is the case if you execute dune runtest from the above repository). The observed result are failures since the above mentioned command executed successfully (exit status = 0), but did not produce any output.

@kit-ty-kate
Copy link
Member

To reproduce more easily: ~/.opam/opam-init/hooks/sandbox.sh build security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain

@rjbou
Copy link
Collaborator

rjbou commented Nov 18, 2020

I don't a have a macos to test. What is failing, network or denial access to part of the system where are stored certificates ?

@dra27 dra27 added this to the 2.2.0~alpha milestone Jan 22, 2021
kit-ty-kate added a commit to kit-ty-kate/opam that referenced this issue Aug 12, 2021
kit-ty-kate added a commit to kit-ty-kate/opam that referenced this issue Aug 12, 2021
@kit-ty-kate kit-ty-kate removed this from the 2.2.0~alpha milestone Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants