mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1413] noroot not effective with ssh? #961
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#961
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 @chiraag-nataraj on GitHub (Jul 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1413
So I'm currently trying to sandbox ssh and I'm running into something very interesting.
I use the following profile:
When I start ssh with this profile, I would think that ssh (and anything spawned by it) would not have access to root. However, I am able to log in as usual and use
sudo suto gain root privileges. Why is is this happening?[Edit] I know that I'm inside the jail because I can use
topto note that I can only see thesshprocess and thebashspawned by it.@SkewedZeppelin commented on GitHub (Jul 29, 2017):
Edit: did you ever find a fix for #1387 ?
Edit 2: I think you need nonewprivs in addition to noroot for it to be fully effective.
@chiraag-nataraj commented on GitHub (Jul 29, 2017):
As to your first question, I did not - I still have to manually stop the command when interactively restarting it, but it spawns properly when booting up.
I will try
nonewprivs, but I don't see why I need that in this profile when I don't need it for any other profiles for it to be effective. Is it because I have to spawn it as root to begin with?@chiraag-nataraj commented on GitHub (Jul 30, 2017):
Interesting. Using
nonewprivsindeed worked, and I can't escalate within thesshsession. Thanks @SpotComms!