aboutsummaryrefslogtreecommitdiffstats
path: root/src/firecfg/firecfg.h
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-01-08 09:06:21 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-01-11 09:10:19 -0300
commit46e2ab9d2e3004e43cbe2b73f2592325700a1af2 (patch)
tree51225eb0b1290b834bcc6d4a3697e2a71f344aff /src/firecfg/firecfg.h
parentfirecfg: use ignorelist also for .profile files (diff)
downloadfirejail-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.h2
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
52extern int arg_debug; 52extern int arg_debug;
53int in_ignorelist(const char *const str);
54void parse_config_all(int do_symlink);
53 55
54// util.c 56// util.c
55int which(const char *program); 57int which(const char *program);