Results 1 to 7 of 7

Thread: firejail / Xephyr suddenly not working properly for secure firefox environment

  1. #1
    Join Date
    Oct 2013
    Beans
    83

    firejail / Xephyr suddenly not working properly for secure firefox environment

    I was quite pleased to discover that I could create a reasonably secure 'desktop' environment for Firefox using firejail with xephyr and fluxbox. Had been using VirtualBox, but it takes to much memory and CPU.

    My firejail environment was working perfectly, but after a reboot and after some updates it suddenly has serious problems, and I have no idea how to fix it.

    I created the firejail environment with (in practice, I use more complex security switches, but the following reproduces the problem):

    Code:
    firejail --x11=xephyr --xephyr-screen=1920x1080 fluxbox &
    #get the display number:
    firemon--x11
    #Attach firefox / mousepad:
    DISPLAY=:390 firejail firefox &
    DISPLAY=:390 firejail mousepad &
    This *was* working perfectly, but after a reboot about a week ago it started doing the following:

    Firefox opens as a window in the upper left of xephyr. The window cannot be moved or resized (and it's too small).

    When mousepad is open, anything I type or paste in a Firefox text box gets typed or pasted into mousepad instead. This means I cannot copy or paste anything (passwords, URLs, etc.) from mousepad into Firefox. When I close mousepad, text that I had copied from mousepad disappears from the clipboard, so it still cannot be transferred to Firefox.

    I've tried to purge-remove and then reinstall: firefox, mousepad, xephyr, and fluxbox. I also deleted all firefox cache / config files. But the problem behaviors persist.

    Any thoughts on what else I might try or what might be wrong?

  2. #2
    Join Date
    Jun 2016
    Beans
    2,831
    Distro
    Xubuntu

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    Can you please post the output of the following commands run in Terminal? -
    Code:
    lsb_release -a
    uname -r
    firejail --version
    apt-cache policy firejail
    Have you tried opening Terminal windows directly from the fluxbox in your firejail Xephyr, then from those Terminals running Firefox/Mousepad/whatever?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    When your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  3. #3
    Join Date
    Oct 2013
    Beans
    83

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    Oh, and to make this even weirder: While the firefox window is fixed position, un-resizable, and has no close / minimize buttons, the mousepad window is changeable position, resizable, and has close / minimize buttons.

  4. #4
    Join Date
    Oct 2013
    Beans
    83

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    Thanks halogen2!

    Good idea to try running firefox & mousepad from within xephyr. Unfortunately, I run into the same problems.

    Here is the info you requested (see below). Interestingly, I was able to copy / paste using the right mouse button.


    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.2 LTS
    Release: 20.04
    Codename: focal
    $ uname -r
    5.8.0-50-generic
    $ firejail --version
    firejail version 0.9.62
    $ apt-cache policy firejail
    firejail:
    Installed: 0.9.62-3
    Candidate: 0.9.62-3
    Version table:
    *** 0.9.62-3 100
    100 /var/lib/dpkg/status

  5. #5
    Join Date
    Jun 2016
    Beans
    2,831
    Distro
    Xubuntu

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    Did you disable the universe section of the standard Ubuntu repositories?

    Are you using custom firejail profiles?
    Can you please post the output of each individual firejail command you're running?

    Have you tried renaming your ~/.fluxbox directory to start from a clean Fluxbox configuration?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    When your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  6. #6
    Join Date
    Oct 2013
    Beans
    83

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    Hi halogen2:

    My Ubuntu repositories include universe, and I am using the standard firejail profiles that were downloaded with firejail by synaptic.

    Good idea to try to rename .fluxbox directory so I'd get a clean configuration. Unfortunately, this had no effect--am still getting those problems.

    I'm enclosing a copy of what I get when I open fluxbox, firefox, and mousepad using firejail. I think it wasn't able to connect to ibus before these problems occurred as well as currently.

    Thanks for your thoughts!
    Attached Files Attached Files

  7. #7
    Join Date
    Oct 2013
    Beans
    83

    Re: firejail / Xephyr suddenly not working properly for secure firefox environment

    I just tried openbox and it is working without the issues I'm experiencing in fluxbox. I prefer fluxbox, but not with those issues. Seems the simple solution for me is to switch to openbox, though I wish I could figure out why it suddenly started having these issues.

    Thanks again halogen2 for working on this with me!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •