Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659808 - app-admin/keepass-2.39.1 sandbox violation mkdir /etc/mono/registry with dev-lang/mono >= 5
Summary: app-admin/keepass-2.39.1 sandbox violation mkdir /etc/mono/registry with dev-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Alessandro Di Federico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 23:53 UTC by Nelo-T. Wallus (ntnn)
Modified: 2018-11-08 13:22 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info app-admin/keepass (emerge-info.txt,11.08 KB, text/plain)
2018-07-01 23:53 UTC, Nelo-T. Wallus (ntnn)
Details
build log (keepass-2.39.1:20180701-230904.log,47.92 KB, text/plain)
2018-07-01 23:54 UTC, Nelo-T. Wallus (ntnn)
Details
sandbox violation log (sandbox-violation.log,12.28 KB, text/plain)
2018-07-01 23:54 UTC, Nelo-T. Wallus (ntnn)
Details
Sandbox violation of keepass-2.40 and dev-lang/mono-5.14.0.177 (sandbox-11169.log,13.38 KB, text/x-log)
2018-09-17 19:36 UTC, MrSnivvel
Details
keepass-build-log (keepass-2.40-build.log,49.03 KB, text/x-log)
2018-09-18 14:40 UTC, MrSnivvel
Details
Patch to keepass-2.39.1.ebuild to prevent mono from trying to write to /etc (set-mono-registry-path.patch,367 bytes, patch)
2018-09-29 09:31 UTC, Alessandro Di Federico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nelo-T. Wallus (ntnn) 2018-07-01 23:53:55 UTC
Created attachment 538070 [details]
emerge --info app-admin/keepass

app-admin/keepass-2.39.1 fails to compile with dev-lang/mono>=5 with usersandbox enabled due to a sandbox violation.

Also mentioned by Sander Sweers in https://bugs.gentoo.org/633560, but he hasn't opened a bug yet.
Comment 1 Nelo-T. Wallus (ntnn) 2018-07-01 23:54:19 UTC
Created attachment 538072 [details]
build log
Comment 2 Nelo-T. Wallus (ntnn) 2018-07-01 23:54:44 UTC
Created attachment 538074 [details]
sandbox violation log
Comment 3 Nelo-T. Wallus (ntnn) 2018-07-01 23:56:56 UTC
I couldn't test the issue with mono-4 as it fails to compile with gcc-7.
Comment 4 Sander Sweers 2018-07-02 09:08:04 UTC
(In reply to Nelo-T. Wallus (ntnn) from comment #3)
> I couldn't test the issue with mono-4 as it fails to compile with gcc-7.

Mono 5 caused the build to fail for me. Try unmerging.

(In reply to Nelo-T. Wallus (ntnn) from comment #0)
> Also mentioned by Sander Sweers in https://bugs.gentoo.org/633560, but he
> hasn't opened a bug yet.

Thanks, was busy with things.

When emerging mono 5 I remember seeing similar registry messages. I'll attach logs as soon as I have time to try.
Comment 5 Sander Sweers 2018-07-05 21:14:15 UTC
(In reply to Sander Sweers from comment #4)
> When emerging mono 5 I remember seeing similar registry messages. I'll
> attach logs as soon as I have time to try.

I was mistaken, there are none that I could see.

keepass works fine build under mono4 running under mono5. Building under mono5 there are the registry problems.
Comment 6 George Diamantopoulos 2018-07-16 14:03:31 UTC
Same here. Should this be reported upstream? Or is it a packaging issue?
Comment 7 Robert Förster 2018-07-16 17:05:49 UTC
i think its the latter, i have seen it with dev-libs/Ice too.
Comment 8 MrSnivvel 2018-09-17 19:36:15 UTC
Created attachment 547120 [details]
Sandbox violation of keepass-2.40 and dev-lang/mono-5.14.0.177

This is still happening for keepass-2.40 and install of mono-5.14.0.177
Comment 9 MrSnivvel 2018-09-18 14:40:40 UTC
Created attachment 547152 [details]
keepass-build-log
Comment 10 Alessandro Di Federico 2018-09-29 09:31:07 UTC
Created attachment 548168 [details, diff]
Patch to keepass-2.39.1.ebuild to prevent mono from trying to write to /etc

This should fix the problem. Not sure whether pointing to /dev/null is a best practice, but it works.

Micheal, can you give it a spin and with FEAUTRES=usersandbox and update the ebuild?
Comment 11 Xavier Miller (RETIRED) gentoo-dev 2018-10-12 20:44:56 UTC
(In reply to Alessandro Di Federico from comment #10)
> Created attachment 548168 [details, diff] [details, diff]
> Patch to keepass-2.39.1.ebuild to prevent mono from trying to write to /etc
> 
> This should fix the problem. Not sure whether pointing to /dev/null is a
> best practice, but it works.
> 
> Micheal, can you give it a spin and with FEAUTRES=usersandbox and update the
> ebuild?

attachment 548168 [details, diff] works for me, thanks!
Comment 12 tonemgub 2018-10-19 16:15:53 UTC
Confirming that this issue and it's solution also affects keepass-2.40-r1.
Comment 13 Martin von Gagern 2018-11-03 22:18:55 UTC
Same here with 2.40-r1. For people too lazy to edit ebuilds (like myself), calling “MONO_REGISTRY_PATH=/dev/null emerge keepass” works fine, too.
Comment 14 Larry the Git Cow gentoo-dev 2018-11-08 13:22:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=351c87e04aeb51bf723a4c323967baa33cfa9935

commit 351c87e04aeb51bf723a4c323967baa33cfa9935
Author:     Alessandro Di Federico <ale@clearmind.me>
AuthorDate: 2018-11-08 13:20:38 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-11-08 13:22:06 +0000

    app-admin/keepass: fix sandbox violation with mono-5
    
    Closes: https://bugs.gentoo.org/659808
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Michael Palimaka <kensington@gentoo.org>

 app-admin/keepass/keepass-2.40-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)