mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5899] firecfg: Support OpenDoas #3124
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#3124
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 @ghost on GitHub (Jul 14, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5899
Is your feature request related to a problem? Please describe.
There was a somewhat recent security vulnerability in sudo leading some users (myself included) to look into projects such as OpenDoas, which is a simpler and easier to audit way of handling privilege escalation that I and some other users in the GNU/Linux community have migrated to. Firecfg does NOT function properly using
doasto run, it explicitly requiressudo. When attempting to usedoas, it will act as thoughfirecfgwas run as the root user, and not as a heightened-privilege user similar tosudo.Describe the solution you'd like
Perhaps adding an option similar to paru's config file that easily allows Firecfg to be run in "doas mode."
Describe alternatives you've considered
I am not entirely sure if this is something
doasis capable of accomplishing, as it is intentionally left as simple as possible. But, I do believe a workaround can be made. I am not a programmer, I'd love to make a pull request if I knew how to add such a feature. 😅Additional context
Any response is appreciated. :)
@rusty-snake commented on GitHub (Jul 14, 2023):
OT: https://github.com/Duncaen/OpenDoas/issues/106
Assuming you use doas, can you run
doas printenv | grep DOAS_USERand report back if it prints your user.If so it is a simple second check in
c7b8e00c70/src/firecfg/main.c (L292)andc7b8e00c70/src/jailcheck/utils.c (L28).@rusty-snake commented on GitHub (Jul 14, 2023):
Nevermind @kmk3 has already done in #5900.
@kmk3 commented on GitHub (Jul 16, 2023):
@shaggonit Done in #5900, thanks for the suggestion.