mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2053] [enhancement] Ability to specify xpra display #1387
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#1387
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 22, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2053
So currently, we can use
--x11 xprato dynamically start (and attach to) a new xpra display. But for some programs (e.g. terminal emulators), it might make sense to start up an xpra display beforehand and merely connect to it each time. Of course, this can be accomplished through environment variables (using env DISPLAY=:blah). But one thing I noticed is that when I use e.g.x11 xpra, it cleans out other existing X11 sockets, which means I can whitelist the/tmp/.X11-unixdirectory without having to specify the specific X11 display I will want to connect to. If I go the environment variable route, I will have to specify the particular X11 display I will want to connect to, which makes the profile a little less flexible.Would it be possible to bring in one new predicate and one new variable? The predicate
xpra-displaywould let you specify the specific xpra display you want to connect to and would spawn it if it's not already started. The variable${DISPLAY}would let you select the X11 display the program will be running under. That way, I could do something likewhitelist /tmp/.X11-unix/${DISPLAY}which would keep the profile generic (if I wanted to turn off X11 sandboxing, the profile would keep working with no hiccoughs).@netblue30 commented on GitHub (Jul 24, 2018):
Sure, let's go for it.