mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3846] Not able to use netns configuration directive in .profile or .local files #2424
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#2424
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 @faern on GitHub (Dec 27, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3846
Bug and expected behavior
I can use
--netns=whateverfrom the command line. But if I putnetns anythinggoesin a profile it says that line of the configuration is invalid. I would expect to be able to set up a profile that persistently joins a network namespace. For many of my jailed programs I want them to always join a given namespace, but if I can't specify that in myprogram.localoverride I will have to have separate launcher scripts for them, which is inconvenient and complicates the setup.Environment
Fedora 33 Workstation
@rusty-snake commented on GitHub (Dec 28, 2020):
Untested:
@faern commented on GitHub (Dec 28, 2020):
Is this really an enhancement rather than a bug? Are not all CLI arguments supposed to be possible to specify in the profiles also?
@rusty-snake commented on GitHub (Dec 28, 2020):
Interesting question. I considered it as "not implemented yet". Let's see what differences we have ith other commands. (These greps are incomplete and wrong. Their only intention is to provide a first overview.)
grep "strncmp(ptr, " src/firejail/profile.c | grep -oE "\".*\"" | sed -e "s/ \"//g" -e "s/\"//g" | sort -u > prflgrep "strncmp(argv\[i\]" src/firejail/main.c | grep -oE "\--.*=\"" | sed -e "s/--//g" -e "s/=\"//g" | sort -u > clidiff prfl cliSome cli-only like
audit,*.print,cat,put,ls,get,join,noprofile, ... are right of course. Others likechroot,dbus-log,interface,bandwidth,shellor on profile-only sidemkdir,mkfile,blacklist-nologmake sense to be implemented in cli and profile.