mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1543] SSH can't start with default profile if there are system-wide configs in /etc/ssh/ssh_config.d/ #1028
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1028
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jelford on GitHub (Sep 10, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1543
I'm running on a freshly installed copy of Fedora 26 (Workstation). I haven't made any modifications to the default ssh settings. I installed firejail (from master), along with running firecfg, and I found I was unable to pull my latest source from GitHub with an SSH remote. I have a work-around, but it involves changing my system-wide SSH settings.
What happens:
It looks like SSH will bomb out if its config files don't belong to either the current user or root (
22376d27a3/readconf.c (L1727)).In the firejail sandbox, with the default profile for ssh:
So it looks like the default SSH profile will prevent it from running when there's system-wide configuration under
/etc/ssh/ssh_config.d/. I can work around for now by just deleting the file - it doesn't have anything I actually want anyway.I looked to update the SSH profile, but I couldn't see a way to pull in system files with their ownership intact. I'm happy to do a PR if there's a profile instruction I've missed.
@netblue30 commented on GitHub (Sep 13, 2017):
This comes from the user namespace. In /etc/firejail/ssh.profile comment out noroot line (add a #) like this:
I'll bring in a fix for the profile on mainline git, thanks for the bug.
@jelford commented on GitHub (Sep 17, 2017):
Thanks @netblue30 , that works for me.
@cremesk commented on GitHub (Dec 23, 2017):
Dez 23 14:46:56 t1703.naschwerk.mysec-home.net audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@90-19339-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostnam$
Dez 23 14:46:57 t1703.naschwerk.mysec-home.net systemd-coredump[19340]: Process 19336 (ssh) of user 1000 dumped core.
@felixwiemuth commented on GitHub (Oct 14, 2024):
It seems this happens again (here with Manjaro):
Probably as
/etc/firejail/git.profilehasnoroot.Adding
ignore norootto~/.config/firejail/git.localresolves the problem.@powerman commented on GitHub (Jul 16, 2025):
It's sad we can't use
norootbecause of this. 😞