[GH-ISSUE #2231] organize profiles a bit #1499

Open
opened 2026-05-05 08:10:02 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @ghost on GitHub (Nov 2, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2231

They are so many profiles now....
maybe have subfolders for local and commonly used files.
A bit like apparmor profiles.

Originally created by @ghost on GitHub (Nov 2, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2231 They are so many profiles now.... maybe have subfolders for local and commonly used files. A bit like apparmor profiles.
gitea-mirror added the
enhancement
label 2026-05-05 08:10:02 -06:00
Author
Owner

@SkewedZeppelin commented on GitHub (Nov 2, 2018):

Like:
/etc/firejail for firejail configs
./includes for includes (*.inc)
./common for commons (*-common.profile)
./profiles for profiles (*.profile)

I'm not sure how easy it would be to implement or to migrate existing installs/packages. and it might require extra work on the package maintainers end.

<!-- gh-comment-id:435241970 --> @SkewedZeppelin commented on GitHub (Nov 2, 2018): Like: /etc/firejail for firejail configs ./includes for includes (\*.inc) ./common for commons (\*-common.profile) ./profiles for profiles (\*.profile) I'm not sure how easy it would be to implement or to migrate existing installs/packages. and it might require extra work on the package maintainers end.
Author
Owner

@ghost commented on GitHub (Nov 2, 2018):

One time, when i was a little boy, i had installed a bunch of dos games in a single folder, no subfolders, all their files mixed up. When my grand father saw that, he said that i shouldn't do that.... :P

<!-- gh-comment-id:435247927 --> @ghost commented on GitHub (Nov 2, 2018): One time, when i was a little boy, i had installed a bunch of dos games in a single folder, no subfolders, all their files mixed up. When my grand father saw that, he said that i shouldn't do that.... :P
Author
Owner

@netblue30 commented on GitHub (Nov 5, 2018):

It is very easy to search for a profile if all of them are in the same directory. You have an application name, add "/etc/firejail/" in front of it, and a ".profile" at the end.

I would say it only creates problems when you go in git and edit many profiles. For now we can split them in git as suggested by @SkewedZeppelin, but at runtime we still need all of them in the same directory.

<!-- gh-comment-id:435868365 --> @netblue30 commented on GitHub (Nov 5, 2018): It is very easy to search for a profile if all of them are in the same directory. You have an application name, add "/etc/firejail/" in front of it, and a ".profile" at the end. I would say it only creates problems when you go in git and edit many profiles. For now we can split them in git as suggested by @SkewedZeppelin, but at runtime we still need all of them in the same directory.
Author
Owner

@ghost commented on GitHub (Nov 14, 2018):

and also have a /etc/firejail/local folder for local stuff. That would be very useful, you instantly see all your stuff.

Have you realized they are 567 files in /etc/firejail ?

It's not possible to deprecate the current setup and gradually move to a new one with symlinks?

<!-- gh-comment-id:438714078 --> @ghost commented on GitHub (Nov 14, 2018): and also have a /etc/firejail/local folder for local stuff. That would be very useful, you instantly see all your stuff. Have you realized they are 567 files in /etc/firejail ? It's not possible to deprecate the current setup and gradually move to a new one with symlinks?
Author
Owner

@netblue30 commented on GitHub (Nov 14, 2018):

Have you realized they are 567 files in /etc/firejail ?

 ls -l etc/*.profile | wc -l
601

The number is going up fast, we'll have to find a solution to it.

<!-- gh-comment-id:438738403 --> @netblue30 commented on GitHub (Nov 14, 2018): > Have you realized they are 567 files in /etc/firejail ? ````` ls -l etc/*.profile | wc -l 601 ````` The number is going up fast, we'll have to find a solution to it.
Author
Owner

@rusty-snake commented on GitHub (Jun 26, 2019):

ls /etc/firejail/*.profile | wc -l 
809
ls /etc/firejail/*.inc | wc -l    
17
ls /etc/firejail/*-common.profile | wc -l
5
ls /etc/firejail/* | wc -l              
832

>800 thats a lot, but the most will be in a profile folder so we will still have a huge folder.
but for the visual it would be helpful

/etc/firejail
├── firejail.config
├── firejail.users
├── profile
├── common
├── net
├── includes
├── local
    ├── README
<!-- gh-comment-id:505788246 --> @rusty-snake commented on GitHub (Jun 26, 2019): ``` ls /etc/firejail/*.profile | wc -l 809 ls /etc/firejail/*.inc | wc -l 17 ls /etc/firejail/*-common.profile | wc -l 5 ls /etc/firejail/* | wc -l 832 ``` \>800 thats a lot, but the most will be in a profile folder so we will still have a huge folder. but for the visual it would be helpful ``` /etc/firejail ├── firejail.config ├── firejail.users ├── profile ├── common ├── net ├── includes ├── local ├── README ```
Author
Owner

@ghost commented on GitHub (Apr 20, 2020):

#3366 makes this a bit more urgent now IMO. Here are a few personal remarks on @rusty-snake's proposal:

  • add apparmor dir;
  • don't see much use for separate common and includes dirs (as relevant files are already named *.inc and this would only create extra navigational clicks/pageloads) --> put those under inc;
  • drop local dir;
  • add templates dir;
  • split-out *.profile files into alphabetically named directories to avoid having to redo this exercise any time soon.

The above translates into the following git repository layout (as @netblue30's remark on having files available under one /etc/firejail dir still stands):

/etc
├── apparmor
├── inc
├── net
├── profile_a
├── profile_b
├── profile_c
├── profile_...
├── profile_z
├── templates
firejail.config
firejail.users
login.users
<!-- gh-comment-id:616324227 --> @ghost commented on GitHub (Apr 20, 2020): #3366 makes this a bit more urgent now IMO. Here are a few personal remarks on @rusty-snake's proposal: - add `apparmor` dir; - don't see much use for separate `common` and `includes` dirs (as relevant files are already named *.inc and this would only create extra navigational clicks/pageloads) --> put those under `inc`; - drop `local` dir; - add `templates` dir; - split-out *.profile files into alphabetically named directories to avoid having to redo this exercise any time soon. The above translates into the following `git repository` layout (as @netblue30's remark on having files available under one /etc/firejail dir still stands): ``` /etc ├── apparmor ├── inc ├── net ├── profile_a ├── profile_b ├── profile_c ├── profile_... ├── profile_z ├── templates firejail.config firejail.users login.users ```
Author
Owner

@netblue30 commented on GitHub (Apr 21, 2020):

I ended up with:

/etc
├── apparmor
├── inc
├── net
├── profile-a-l
├── profile-m-z
├── templates
firejail.config
firejail.users
login.users

018d75775e

<!-- gh-comment-id:617152778 --> @netblue30 commented on GitHub (Apr 21, 2020): I ended up with: /etc ├── apparmor ├── inc ├── net ├── profile-a-l ├── profile-m-z ├── templates firejail.config firejail.users login.users https://github.com/netblue30/firejail/commit/018d75775eab4a0f045949a9d069c57686ca2686
Author
Owner

@ghost commented on GitHub (Apr 21, 2020):

@netblue30 That looks very tight :-) I just installed the free version of a FF add-on called octotree, which also improves navigating repo's with lost of files.

<!-- gh-comment-id:617155561 --> @ghost commented on GitHub (Apr 21, 2020): @netblue30 That looks very tight :-) I just installed the free version of a FF add-on called [octotree](https://github.com/ovity/octotree), which also improves navigating repo's with lost of files.
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#1499
No description provided.