commit:     d6a3e11e268732c2cdcb0f73e97d22b1c9b34131
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 17:45:18 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 17:47:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a3e11e

dev-build/steve: Autoload cuse module to workaround permissions

Add the cuse module to autoloading list to ensure that /dev/cuse is
properly processed by udev before steve is started.  devtmpfs creates
the device node that is only root-accessible, and without root
permissions steve can't access it and trigger loading the module,
so that udev fixes permissions.

Bug: https://bugs.gentoo.org/967033
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-build/steve/steve-9999.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-build/steve/steve-9999.ebuild 
b/dev-build/steve/steve-9999.ebuild
index 26e0cc8000e2..c3121f5bb28d 100644
--- a/dev-build/steve/steve-9999.ebuild
+++ b/dev-build/steve/steve-9999.ebuild
@@ -81,6 +81,12 @@ src_install() {
        insinto /etc/sandbox.d
        newins data/sandbox.conf 90steve
        udev_newrules data/steve.udev 90-steve.rules
+
+       # TODO: can we manage to get the correct cuse permissions otherwise?
+       insinto /usr/lib/modules-load.d
+       newins - steve.conf <<-EOF
+               cuse
+       EOF
 }
 
 pkg_postinst() {

Reply via email to