You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ignore command (`!PROGRAM`), as suggested by @WhyNotHugo[1].
It prevents firecfg from creating a symlink for the given program.
Also, document the paths used and the config file syntax.
Note that /etc/firejail/firecfg.d/*.conf files are parsed before
/etc/firejail/firecfg.config, so the former can ignore/override any
item in the latter.
Closesnetblue30#2097.
[1] netblue30#2097 (comment)
Copy file name to clipboardExpand all lines: src/man/firecfg.txt
+53-4
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,13 @@ desktop managers are supported in this moment
27
27
To set it up, run "sudo firecfg" after installing Firejail software.
28
28
The same command should also be run after
29
29
installing new programs. If the program is supported by Firejail, the symbolic link in /usr/local/bin
30
-
will be created. For a full list of programs supported by default run "cat /etc/firejail/firecfg.config".
31
-
32
-
For user-driven manual integration, see \fBDESKTOPINTEGRATION\fR section in \fBman1firejail\fR.
30
+
will be created.
31
+
.PP
32
+
To configure the list of programs used by firecfg when creating symlinks, see
33
+
\fBFILES\fR and \fBSYNTAX\fR.
34
+
.PP
35
+
For user-driven manual integration, see \fBDESKTOPINTEGRATION\fR section in
36
+
\fBman1firejail\fR.
33
37
.SH DEFAULT ACTIONS
34
38
The following actions are implemented by default by running sudo firecfg:
35
39
@@ -133,8 +137,53 @@ $ sudo firecfg --clean
133
137
/usr/local/bin/vlc removed
134
138
.br
135
139
[...]
140
+
.SH FILES
141
+
.PP
142
+
Configuration files are searched for and parsed in the following paths:
143
+
.PP
144
+
.RS
145
+
1. /etc/firejail/firecfg.d/*.conf (in alphabetical order)
146
+
.br
147
+
2. /etc/firejail/firecfg.config
148
+
.RE
149
+
.PP
150
+
The programs that are supported by default are listed in
151
+
/etc/firejail/firecfg.config.
152
+
It is recommended to leave it as is and put all customizations inside
153
+
/etc/firejail/firecfg.d/.
154
+
.PP
155
+
Profile files are also searched in the user configuration directory:
156
+
.PP
157
+
.RS
158
+
3. ~/.config/firejail/*.profile
159
+
.RE
160
+
.PP
161
+
For every \fBPROGRAM.profile\fR file found, firecfg attempts to create a
162
+
symlink for "PROGRAM", as if "PROGRAM" was listed in a configuration file.
163
+
.SH SYNTAX
164
+
Configuration file syntax:
165
+
.PP
166
+
A line that starts with \fB#\fR is considered a comment.
167
+
.br
168
+
A line that starts with \fB!PROGRAM\fR means to ignore "PROGRAM" when creating
169
+
symlinks.
170
+
.br
171
+
A line that starts with anything else is considered to be the name of an
172
+
executable and firecfg will attempt to create a symlink for it.
173
+
.PP
174
+
For example, to prevent firecfg from creating symlinks for "firefox" and
175
+
"patch" while attempting to create a symlink for "myprog", the following lines
176
+
could be added to /etc/firejail/firecfg.d/10-my.conf:
177
+
.PP
178
+
.RS
179
+
!firefox
180
+
.br
181
+
!patch
182
+
.br
136
183
137
-
184
+
.br
185
+
myprog
186
+
.RE
138
187
.SH LICENSE
139
188
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
0 commit comments