diff options
author | 2024-01-08 09:06:21 -0300 | |
---|---|---|
committer | 2024-01-11 09:10:19 -0300 | |
commit | 46e2ab9d2e3004e43cbe2b73f2592325700a1af2 (patch) | |
tree | 51225eb0b1290b834bcc6d4a3697e2a71f344aff /src/firecfg/firecfg.h | |
parent | firecfg: use ignorelist also for .profile files (diff) | |
download | firejail-46e2ab9d2e3004e43cbe2b73f2592325700a1af2.tar.gz firejail-46e2ab9d2e3004e43cbe2b73f2592325700a1af2.tar.zst firejail-46e2ab9d2e3004e43cbe2b73f2592325700a1af2.zip |
firecfg: refactor config parse functions
Changes:
* Export `in_ignorelist` function
* Allow only building the ignorelist without setting the symlinks
* Rename the functions to reflect the above
* Add a function that parses all config files (`parse_config_all`)
Also, make sure that `parse_config_all` only parses config files once,
even if called multiple times.
Relates to #5876.
Diffstat (limited to 'src/firecfg/firecfg.h')
-rw-r--r-- | src/firecfg/firecfg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firecfg/firecfg.h b/src/firecfg/firecfg.h index 11e3ebc67..d42c937cf 100644 --- a/src/firecfg/firecfg.h +++ b/src/firecfg/firecfg.h | |||
@@ -50,6 +50,8 @@ | |||
50 | 50 | ||
51 | // main.c | 51 | // main.c |
52 | extern int arg_debug; | 52 | extern int arg_debug; |
53 | int in_ignorelist(const char *const str); | ||
54 | void parse_config_all(int do_symlink); | ||
53 | 55 | ||
54 | // util.c | 56 | // util.c |
55 | int which(const char *program); | 57 | int which(const char *program); |