[PR #6479] [MERGED] profiles: ssh: add ${RUNUSER}/gvfsd-sftp #6032

Closed
opened 2026-05-05 10:49:27 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6479
Author: @kmk3
Created: 9/16/2024
Status: Merged
Merged: 9/19/2024
Merged by: @kmk3

Base: masterHead: ssh-allow-gvfsd


📝 Commits (1)

  • 5f4bb13 profiles: ssh: add ${RUNUSER}/gvfsd-sftp

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 etc/profile-m-z/ssh.profile (+1 -0)

📄 Description

Based on the report by @Saren-Arterius[1]:

Since GNOME gvfs 1.53+, the ssh client options ControlMaster=auto and
ControlPath=/run/user/$UID/gvfsd-sftp/%C are used to mount sftp.

Since /run/user/$UID/gvfsd-sftp is not whitelisted, gvfs sftp mount
with nautilus will fail with a meaningless error message shown in the
UI.

Steps to reproduce[1]:

Prepare ssh server or localhost, then run:

ssh -o"ForwardX11 no" -o"ForwardAgent no" \
    -o"PermitLocalCommand no" -o"ClearAllForwardings yes" \
    -o"NoHostAuthenticationForLocalhost yes" \
    -o"ControlMaster auto" \
    -o"ControlPath=/run/user/${UID}/gvfsd-sftp/test" \
    -s {SSH_HOST} sftp

stderr shows:

unix_listener: cannot bind to path /run/user/$UID/gvfsd-sftp/test.{RANDOM_STRING}: No such file or directory

And ssh exits with error code 255.

Fixes #5816.

[1] https://github.com/netblue30/firejail/issues/5816#issue-1695295931

Reported-by: @Saren-Arterius
Suggested-by: @Saren-Arterius
Reported-by: @Alex-Farol
Reported-by: @mirko


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/6479 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 9/16/2024 **Status:** ✅ Merged **Merged:** 9/19/2024 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `ssh-allow-gvfsd` --- ### 📝 Commits (1) - [`5f4bb13`](https://github.com/netblue30/firejail/commit/5f4bb13d7df698a2ccf779c3a2d3b1b9aed3bce0) profiles: ssh: add ${RUNUSER}/gvfsd-sftp ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `etc/profile-m-z/ssh.profile` (+1 -0) </details> ### 📄 Description Based on the report by @Saren-Arterius[1]: Since GNOME gvfs 1.53+, the ssh client options `ControlMaster=auto` and `ControlPath=/run/user/$UID/gvfsd-sftp/%C` are used to mount sftp. Since `/run/user/$UID/gvfsd-sftp` is not whitelisted, gvfs sftp mount with nautilus will fail with a meaningless error message shown in the UI. Steps to reproduce[1]: Prepare ssh server or localhost, then run: ssh -o"ForwardX11 no" -o"ForwardAgent no" \ -o"PermitLocalCommand no" -o"ClearAllForwardings yes" \ -o"NoHostAuthenticationForLocalhost yes" \ -o"ControlMaster auto" \ -o"ControlPath=/run/user/${UID}/gvfsd-sftp/test" \ -s {SSH_HOST} sftp stderr shows: unix_listener: cannot bind to path /run/user/$UID/gvfsd-sftp/test.{RANDOM_STRING}: No such file or directory And ssh exits with error code 255. Fixes #5816. [1] https://github.com/netblue30/firejail/issues/5816#issue-1695295931 Reported-by: @Saren-Arterius Suggested-by: @Saren-Arterius Reported-by: @Alex-Farol Reported-by: @mirko --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:49:27 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#6032
No description provided.