mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4607] noprinters #2719
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#2719
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 @rusty-snake on GitHub (Oct 15, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4607
Describe the solution you'd like
noprinterscommand to disable printing. It shouldblacklist /dev/lp*stuff and/run/cups/cups.sock.This idea is based on the observation that wrc has
/run/**/resolv.confwhich is either needed or useless because ofnet none/run/dbus/system_bus_socketwhich is further handled bydbus-system/run/mediawhich is further handled bydisable-mnt/disable-write-mnt.inc/run/cups/cups.sockwhich is not handled elsewhere.@netblue30 commented on GitHub (Oct 21, 2021):
Done! --noprinters on command line, noprinters in profile. You guys do some testing, I don't have a printer here and /dev/lp* doesn't appear under my /dev. I'll add the man pages later.
@rusty-snake commented on GitHub (Oct 21, 2021):
FTR:
bd15e763ea+d9403dcdc8edit: remember relnotes
@rusty-snake commented on GitHub (Oct 21, 2021):
/dev/lp{1..4}(even if I have no physical connected printers, only IPP).blacklist /dev/lp*works--noprofile --noprinters --net=noneblocks CUPS (e.g. the print dialog from evince only lists "print to pdf")--net=noneis required because@WhyNotHugo commented on GitHub (Dec 3, 2021):
How about disabling printers by default and having a
printerscommand to enable them when desired?It's a bit easier to think about permissions in terms of "profile doesn't allow anything, unless otherwise stated", rather than the other way around.
@rusty-snake commented on GitHub (Dec 3, 2021):
While I generally agree with you to list everything that is required rather than listing everything which is not required (enumerating badness vs. goodness), I don't feel good about changing the logic how firejail works.