Is this a new report?
Yes
System Info
Void 6.18.44_1 x86_64 AuthenticAMD uptodate rrrr
Package(s) Affected
opam-2.5.2_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
Some issues exist for other platforms like ubuntu but they seem to have been closed a while ago:
ocaml/opam#5077
ocaml/opam#6820
ocaml/opam#4368
Expected behaviour
I have opam, bwrap, and apparmor installed. However, sandboxing seems broken despite setting up each tool as instructed in the Void Handbook, and OPAM Docs.
I would expect opam to succeed.
Actual behaviour
opam says sandboxing is not supported. Disabling sandboxing works but comes with obvious drawbacks.
Steps to reproduce
$ xbps-install -S opam bubblewrap apparmor runit-void-apparmor
(successful)
$ aa-enabled
Yes
$ cat /etc/apparmor.d/opam
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"
abi <abi/4.0>,
include <tunables/global>
profile opam /usr/bin/opam flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/opam>
}
$ opam init
No configuration file found, using built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
[ERROR] Sandboxing is not working on your platform void:
"~/.opam/opam-init/hooks/sandbox.sh build sh -c echo SUCCESS | tee check-write" exited with code 1
Do you want to disable it? Note that this will result in less secure package builds, so please ensure that you have some other isolation mechanisms
in place (such as running within a container or virtual machine). [y/N]
Is this a new report?
Yes
System Info
Void 6.18.44_1 x86_64 AuthenticAMD uptodate rrrr
Package(s) Affected
opam-2.5.2_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
Some issues exist for other platforms like
ubuntubut they seem to have been closed a while ago:ocaml/opam#5077
ocaml/opam#6820
ocaml/opam#4368
Expected behaviour
I have
opam,bwrap, andapparmorinstalled. However, sandboxing seems broken despite setting up each tool as instructed in the Void Handbook, and OPAM Docs.I would expect
opamto succeed.Actual behaviour
opamsays sandboxing is not supported. Disabling sandboxing works but comes with obvious drawbacks.Steps to reproduce