commit:     5429fe956d409b5ed9dd0e9506847e1b86b5d1e1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 18:45:33 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 07:18:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5429fe95

sys-fs/fuse-common: Adjust /dev/cuse permissions via tmpfiles.d

Override the implicit permissions set by static-nodes.conf.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/4
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild 
b/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild
index 8a8a824049c5..f5f9ee74df1e 100644
--- a/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild
+++ b/sys-fs/fuse-common/fuse-common-3.10.4-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit udev
+inherit tmpfiles udev
 
 MY_P=fuse-${PV}
 DESCRIPTION="Common files for multiple slots of sys-fs/fuse"
@@ -26,6 +26,9 @@ src_install() {
        udev_newrules - 99-cuse.rules <<-EOF
                KERNEL=="cuse", GROUP="cuse"
        EOF
+       newtmpfiles - static-nodes-permissions-cuse.conf <<-EOF
+               z /dev/cuse 0660 root cuse - -
+       EOF
 
        if use kernel_linux ; then
                newinitd "${FILESDIR}"/fuse.init fuse

Reply via email to