[GH-ISSUE #6312] zoom: profile bypasses --private (mkdir/mkfile) #3239

Closed
opened 2026-05-05 09:50:54 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @vinc17fr on GitHub (Apr 15, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6312

Description

When I use --private with the zoom profile, files and directories are created in my real home directory.

Steps to Reproduce

  1. Run firejail --private=some_directory --profile=/etc/firejail/zoom.profile
  2. In an another terminal (or after quitting firejail), from the home directory, run:
    ls -ld .zoom .cache/zoom .config/zoomus.conf

Expected behavior

These files/directories should not exist (if they didn't exist initially).

Actual behavior

I get in my real home directory:

drwx------ 2 vinc17 vinc17 4096 2024-04-15 12:52:59 .cache/zoom
-rw------- 1 vinc17 vinc17    0 2024-04-15 12:52:59 .config/zoomus.conf
drwx------ 2 vinc17 vinc17 4096 2024-04-15 12:52:59 .zoom

Behavior without a profile

N/A. The issue is due to the zoom profile, which does

mkdir ${HOME}/.cache/zoom
mkfile ${HOME}/.config/zoomus.conf
mkdir ${HOME}/.zoom

Since Zoom will run from the private directory, these files/directories should be created in the private directory.

Environment

  • Linux distribution and version: Debian/unstable
  • Firejail version (firejail --version): 0.9.72

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of LC_ALL=C firejail /path/to/program

Reading profile /etc/firejail/zoom.profile
Reading profile /etc/firejail/electron.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 577596, child pid 577600
Child process initialized in 70.73 ms

Originally created by @vinc17fr on GitHub (Apr 15, 2024). Original GitHub issue: https://github.com/netblue30/firejail/issues/6312 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description When I use `--private` with the `zoom` profile, files and directories are created in my real home directory. ### Steps to Reproduce 1. Run `firejail --private=some_directory --profile=/etc/firejail/zoom.profile` 2. In an another terminal (or after quitting firejail), from the home directory, run: `ls -ld .zoom .cache/zoom .config/zoomus.conf` ### Expected behavior These files/directories should not exist (if they didn't exist initially). ### Actual behavior I get in my real home directory: ``` drwx------ 2 vinc17 vinc17 4096 2024-04-15 12:52:59 .cache/zoom -rw------- 1 vinc17 vinc17 0 2024-04-15 12:52:59 .config/zoomus.conf drwx------ 2 vinc17 vinc17 4096 2024-04-15 12:52:59 .zoom ``` ### Behavior without a profile N/A. The issue is due to the `zoom` profile, which does ``` mkdir ${HOME}/.cache/zoom mkfile ${HOME}/.config/zoomus.conf mkdir ${HOME}/.zoom ``` Since Zoom will run from the private directory, these files/directories should be created in the private directory. ### Environment - Linux distribution and version: Debian/unstable - Firejail version (`firejail --version`): 0.9.72 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` Reading profile /etc/firejail/zoom.profile Reading profile /etc/firejail/electron.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Warning: networking feature is disabled in Firejail configuration file Parent pid 577596, child pid 577600 Child process initialized in 70.73 ms ``` </p> </details>
gitea-mirror 2026-05-05 09:50:54 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@vinc17fr commented on GitHub (Apr 15, 2024):

I forgot about it, but this seems to be the more general bug #903 (I thought that this was specific to the zoom profile and was looking for Zoom-related bugs).

<!-- gh-comment-id:2056590347 --> @vinc17fr commented on GitHub (Apr 15, 2024): I forgot about it, but this seems to be the more general bug #903 (I thought that this was specific to the `zoom` profile and was looking for Zoom-related bugs).
Author
Owner

@ghost commented on GitHub (Apr 15, 2024):

Yep, this is a duplicate of #903. Until there's a proper fix, use the workaround mentioned in the man page:
27cd032bed/src/man/firejail.1.in (L2064-L2070)

<!-- gh-comment-id:2056606244 --> @ghost commented on GitHub (Apr 15, 2024): Yep, this is a duplicate of #903. Until there's a proper fix, use the workaround mentioned in the man page: https://github.com/netblue30/firejail/blob/27cd032bed923d01edd859bcebe79b33c3ee18fd/src/man/firejail.1.in#L2064-L2070
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3239
No description provided.