Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867025 - sys-apps/xdg-desktop-portal-1.14.6 xdg-document-portal requires suid for fusermount3
Summary: sys-apps/xdg-desktop-portal-1.14.6 xdg-document-portal requires suid for fuse...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-27 20:27 UTC by Михаил
Modified: 2022-09-24 16:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Михаил 2022-08-27 20:27:49 UTC
Systemd user service xdg-document-portal.service unable to start if /usr/bin/fusermount3 do not have SUID attribute.

Reproducible: Always

Steps to Reproduce:
1. Start systemd session.
2. If needed run systemctl --user start xdg-document-portal.service

Actual Results:  
$ systemctl --user status xdg-document-portal.service
× xdg-document-portal.service - flatpak document portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-document-portal.service; static)
     Active: failed (Result: exit-code) 
   Duration: 3ms
    Process: 1362 ExecStart=/usr/libexec/xdg-document-portal (code=exited, status=6)
   Main PID: 1362 (code=exited, status=6)
        CPU: 10ms

systemd[467]: Starting flatpak document portal service...
systemd[467]: Started flatpak document portal service.
xdg-document-portal[1372]: fusermount3: mount failed: Operation not permitted
xdg-document-portal[1362]: error: fuse init failed: Can't mount path /run/user/3159/doc
systemd[467]: xdg-document-portal.service: Main process exited, code=exited, status=6/NOTCONFIGURED
systemd[467]: xdg-document-portal.service: Failed with result 'exit-code'.


Expected Results:  
Service started.

sys-fs/fuse-3 package have suid USE flag.

Previous version sys-apps/xdg-desktop-portal used sys-fs/fuse-2. 
sys-fs/fuse-2 provides fusermount with SUID attr.

sys-apps/xdg-desktop-portal should require sys-fs/fuse-3 with suid use flag.
Comment 1 Larry the Git Cow gentoo-dev 2022-09-24 16:46:51 UTC
The bug has been closed via the following commit(s):

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

commit cd6ab0758f821a1209846ffff4f4279afaece906
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-09-24 16:03:26 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-09-24 16:43:42 +0000

    sys-apps/xdg-desktop-portal: Version bump to 1.15.0
    
    Closes: https://bugs.gentoo.org/867025
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 sys-apps/xdg-desktop-portal/Manifest               |  1 +
 .../xdg-desktop-portal-1.15.0.ebuild               | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)