Sunshine
Sunshine copied to clipboard
Appimage release: '--install' fails to set caps due to fuse-mount permissions
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your issue described in the documentation?
- [X] I have read the documentation
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
Following the documentation WRT the latest prerelease appimage:
$ ./sunshine.AppImage --install
Password:
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
KERNEL=="uhid", TAG+="uaccess"
Failed to set capabilities on file '/tmp/.mount_sunshiH3L3t0/usr/bin/sunshine-v2024.930.214046': Permission denied
Appimage fuse mounts do not allow other users by default, and that includes root.
$ sudo ./sunshine.AppImage --install
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
KERNEL=="uhid", TAG+="uaccess"
Failed to set capabilities on file '/tmp/.mount_sunshiCkDmP5/usr/bin/sunshine-v2024.930.214046': Read-only file system
Appimage fuse mounts are read-only, because appimage is a squashfs. Nobody actually tested any of this, did they?
Expected Behavior
Installation steps in the documentation work as described for the appimage release. (./sunshine.AppImage --install, sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
Additional Context
Bonus bug, while filing out this report: '/tmp/.mount_sunshivHk1IP/usr/bin/sunshine-v2024.930.214046 --help' says: '--version | print the version of sunshine'
'/tmp/.mount_sunshivHk1IP/usr/bin/sunshine-v2024.930.214046 --version' says: ...Several things, none of which is the version number.
Host Operating System
Linux
Operating System Version
Gentoo Linux 2.15
Architecture
64 bit
Sunshine commit or version
2024.930.214046
Package
Linux - AppImage
GPU Type
AMD
GPU Model
RX 6700 XT
GPU Driver/Mesa Version
24.1.7
Capture Method
KMX (Linux)
Config
fps = [10,30,60,75]
resolutions = [
352x240,
480x360,
858x480,
1280x720,
1920x1080
]
capture = kms
channels = 2
back_button_timeout = 1000
min_log_level = 3
origin_web_ui_allowed = pc
encoder = vaapi
Apps
No response
Relevant log output
Irrelevant, issue pertains to installation.