[GH-ISSUE #5049] docs: users are told to include main .profile in .local profile #2863

Open
opened 2026-05-05 09:31:29 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @zithro on GitHub (Mar 14, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5049

Originally assigned to: @netblue30 on GitHub.

Hello, it's not a software bug I'm reporting, rather a documentation one (so I didn't use the template).
I followed "documentation-2/building-custom-profiles/" to build a vlc custom profile, as this:

net none
include /etc/firejail/vlc.profile

But when running firejail vlc, I enter in an include loop :

Reading profile /etc/firejail/vlc.profile
Reading profile /home/zithro/.config/firejail/vlc.local
[...]
Reading profile /etc/firejail/vlc.profile
Error: maximum profile include level was reached

Removing the include solves it.
Is it because I'm running the latest version (0.9.68) and the documentation was written using an older version ?

Originally created by @zithro on GitHub (Mar 14, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5049 Originally assigned to: @netblue30 on GitHub. Hello, it's not a software bug I'm reporting, rather a documentation one (so I didn't use the template). I followed "documentation-2/building-custom-profiles/" to build a vlc custom profile, as this: ``` net none include /etc/firejail/vlc.profile ``` But when running `firejail vlc`, I enter in an include loop : ``` Reading profile /etc/firejail/vlc.profile Reading profile /home/zithro/.config/firejail/vlc.local [...] Reading profile /etc/firejail/vlc.profile Error: maximum profile include level was reached ``` Removing the include solves it. Is it because I'm running the latest version (0.9.68) and the documentation was written using an older version ?
gitea-mirror added the
bug
wordpress
documentation
labels 2026-05-05 09:31:29 -06:00
Author
Owner

@rusty-snake commented on GitHub (Mar 15, 2022):

include /etc/firejail/vlc.profile is not needed (at wrong) if you use a .local.

If you use /home/zithro/.config/firejail/vlc.local (as you should with newer versions of firejail) net none is all you need.

<!-- gh-comment-id:1068125479 --> @rusty-snake commented on GitHub (Mar 15, 2022): `include /etc/firejail/vlc.profile` is not needed (at wrong) if you use a .local. If you use `/home/zithro/.config/firejail/vlc.local` (as you should with newer versions of firejail) `net none` is all you need.
Author
Owner

@kmk3 commented on GitHub (Mar 15, 2022):

@zithro commented on Mar 14:

Hello, it's not a software bug I'm reporting, rather a documentation one (so
I didn't use the template). I followed
"documentation-2/building-custom-profiles/" to build a vlc custom profile, as
this:

net none
include /etc/firejail/vlc.profile

But when running firejail vlc, I enter in an include loop :

Reading profile /etc/firejail/vlc.profile
Reading profile /home/zithro/.config/firejail/vlc.local
[...]
Reading profile /etc/firejail/vlc.profile
Error: maximum profile include level was reached

Removing the include solves it. Is it because I'm running the latest version
(0.9.68) and the documentation was written using an older version ?

/etc/firejail/vlc.profile contains:

include vlc.local

On every include command, firejail will first look for the file in
~/.config/firejail. If it does not exist, it will look for the file in
/etc/firejail.

If both vlc.profile and vlc.local include each other, then you have an infinite
inclusion loop.

<!-- gh-comment-id:1068381211 --> @kmk3 commented on GitHub (Mar 15, 2022): @zithro commented [on Mar 14](https://github.com/netblue30/firejail/issues/5049#issue-1168945593): > Hello, it's not a software bug I'm reporting, rather a documentation one (so > I didn't use the template). I followed > "documentation-2/building-custom-profiles/" to build a vlc custom profile, as > this: > > ``` > net none > include /etc/firejail/vlc.profile > ``` > > But when running `firejail vlc`, I enter in an include loop : > > ``` > Reading profile /etc/firejail/vlc.profile > Reading profile /home/zithro/.config/firejail/vlc.local > [...] > Reading profile /etc/firejail/vlc.profile > Error: maximum profile include level was reached > ``` > > Removing the include solves it. Is it because I'm running the latest version > (0.9.68) and the documentation was written using an older version ? /etc/firejail/vlc.profile contains: ``` include vlc.local ``` On every include command, firejail will first look for the file in ~/.config/firejail. If it does not exist, it will look for the file in /etc/firejail. If both vlc.profile and vlc.local include each other, then you have an infinite inclusion loop.
Author
Owner

@zithro commented on GitHub (Mar 16, 2022):

Hey guys, thanks for the clarification, so I think the docs need an update ;)
"documentation-2/building-custom-profiles/" meant in fact "https://firejail.wordpress.com/documentation-2/building-custom-profiles/"
Excerpt :

One popular customization is removing network access for media players such as VLC:
$ cat ~/.config/firejail/vlc.profile
net none
include /etc/firejail/vlc.profile 
<!-- gh-comment-id:1068646414 --> @zithro commented on GitHub (Mar 16, 2022): Hey guys, thanks for the clarification, so I think the docs need an update ;) "documentation-2/building-custom-profiles/" meant in fact "https://firejail.wordpress.com/documentation-2/building-custom-profiles/" Excerpt : ``` One popular customization is removing network access for media players such as VLC: $ cat ~/.config/firejail/vlc.profile net none include /etc/firejail/vlc.profile ```
Author
Owner

@ghost commented on GitHub (Mar 16, 2022):

[...] so I think the docs need an update

Indeed they do. All the examples in that section are inclusion loops. Not sure who actually maintains https://firejail.wordpress.com/ to correct them.

<!-- gh-comment-id:1068661207 --> @ghost commented on GitHub (Mar 16, 2022): > [...] so I think the docs need an update Indeed they do. All the examples in that section are inclusion loops. Not sure who actually maintains https://firejail.wordpress.com/ to correct them.
Author
Owner

@zithro commented on GitHub (Mar 16, 2022):

@netblue30 is the author, look at the website comments.

<!-- gh-comment-id:1069197634 --> @zithro commented on GitHub (Mar 16, 2022): @netblue30 is the author, look at the website comments.
Author
Owner

@rusty-snake commented on GitHub (Mar 16, 2022):

All the examples in that section are inclusion loops.

No, because the suggest to create vlc.profile not vlc.local.
FTR: Nowadays you should create a vlc.local without include /etc/firejal/vlc.profile.

<!-- gh-comment-id:1069356879 --> @rusty-snake commented on GitHub (Mar 16, 2022): > All the examples in that section are inclusion loops. No, because the suggest to create `vlc.profile` not `vlc.local`. FTR: Nowadays you should create a `vlc.local` without `include /etc/firejal/vlc.profile`.
Author
Owner

@netblue30 commented on GitHub (Mar 24, 2022):

I wasn't aware of the .local functionality. We just need to document the difference between .local and .profile for files in ~/.config/firejail directory.

<!-- gh-comment-id:1077592659 --> @netblue30 commented on GitHub (Mar 24, 2022): I wasn't aware of the .local functionality. We just need to document the difference between .local and .profile for files in ~/.config/firejail directory.
Author
Owner
<!-- gh-comment-id:1077906319 --> @rusty-snake commented on GitHub (Mar 24, 2022): FTR https://github.com/netblue30/firejail/wiki/Creating-overrides https://github.com/netblue30/firejail/wiki/Creating-Profiles
Author
Owner

@zithro commented on GitHub (Apr 7, 2022):

Should I close this issue ?
The github wiki is up-to-date but the wordpress page is still using .profile everywhere

<!-- gh-comment-id:1091822755 --> @zithro commented on GitHub (Apr 7, 2022): Should I close this issue ? The github wiki is up-to-date but the wordpress page is still using `.profile` everywhere
Author
Owner

@rusty-snake commented on GitHub (Apr 7, 2022):

Should I close this issue ?

No

<!-- gh-comment-id:1092086804 --> @rusty-snake commented on GitHub (Apr 7, 2022): > Should I close this issue ? No
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#2863
No description provided.